/* ==========================================================================
   TIER TOOLS - DESIGN SYSTEM (Mobile First)
   ========================================================================== */

   :root {
    /* Colors */
    --bg-dark: #0A0A0F;
    --bg-surface: #12121A;
    --bg-surface-light: #1A1A24;
    
    --primary: #00BCD4;     /* Cyan */
    --primary-dark: #008BA3;
    --secondary: #FF8C00;   /* Orange */
    
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    
    /* Effects */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(18, 18, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 188, 212, 0.2);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-sans);
    text-align: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 188, 212, 0.05);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */

.promo-banner {
    background: linear-gradient(90deg, var(--secondary), #ff5722);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 102;
    position: relative;
}

.promo-banner a {
    text-decoration: underline;
    font-weight: 700;
}

.promo-banner a:hover {
    color: var(--bg-dark);
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    background: var(--bg-dark); /* Solid background by default so it doesn't overlap weirdly when sticky */
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-tier { color: var(--text-main); }
.logo-tools { color: var(--primary); }

.nav {
    display: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-link:hover {
    color: var(--primary);
}

.header-cta {
    display: none;
}

/* Hamburger */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Mobile Menu Active */
.nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-machining.png') center/cover no-repeat;
    opacity: 0.4;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 40%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.hero h1 {
    font-size: 2.5rem; /* Reduced for mobile */
    letter-spacing: -1px;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small mobile screens */
    justify-content: center; /* Center items when wrapping */
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Hidden on mobile */
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */

.product-lines {
    padding: 0; /* Removing large padding to tighten the layout */
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    width: 600%; /* 6 slides total (5 + 1 clone) */
    animation: scrollSlider 15s infinite; /* 2.5s per step (2s hold, 0.5s transition) */
}

.slide {
    width: 16.6666%; /* 100% / 6 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.slide img:hover {
    transform: scale(1.02);
}

@keyframes scrollSlider {
    0%, 15% { transform: translateX(0); }
    20%, 35% { transform: translateX(-16.666%); }
    40%, 55% { transform: translateX(-33.333%); }
    60%, 75% { transform: translateX(-50%); }
    80%, 95% { transform: translateX(-66.666%); }
    100% { transform: translateX(-83.333%); }
}

/* ==========================================================================
   SOBRE
   ========================================================================== */

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.sobre-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.sobre-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.sobre-image {
    position: relative;
}

.sobre-image img {
    border-radius: 12px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* ==========================================================================
   PRODUTOS
   ========================================================================== */

.produtos {
    background: var(--bg-surface);
}

.produtos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.produto-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.produto-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.produto-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.produto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produto-card:hover .produto-image img {
    transform: scale(1.05);
}

.produto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.produto-info {
    padding: 2rem;
}

.produto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.produto-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.produto-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.produto-link:hover {
    color: var(--secondary);
}

/* ==========================================================================
   ARTICLE SECTION
   ========================================================================== */

.article-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   INDUSTRIAS
   ========================================================================== */

.industrias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.industria-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.industria-card:hover {
    background: var(--bg-surface-light);
    border-color: var(--primary);
}

.industria-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--secondary);
}

.industria-card h4 {
    margin: 0;
    font-size: 1.125rem;
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */

.diferenciais {
    background: var(--bg-surface);
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.diff-card {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.diff-card:hover {
    border-color: var(--secondary);
}

.diff-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.diff-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.diff-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-box {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(255, 140, 0, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.875rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links a, .footer-links p {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom a {
    color: var(--primary);
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* ==========================================================================
   ANIMATIONS & UTILS
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE (Min-width: TABLET/DESKTOP)
   ========================================================================== */

@media (min-width: 768px) {
    .section { padding: 8rem 0; }
    
    .hero h1 { font-size: 4.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-actions { flex-direction: row; }
    .hero-scroll { display: flex; }
    
    .sobre-grid { grid-template-columns: 1fr 1fr; }
    
    .produtos-grid { grid-template-columns: repeat(2, 1fr); }
    
    .industrias-grid { grid-template-columns: repeat(4, 1fr); }
    
    .diff-grid { grid-template-columns: repeat(2, 1fr); }
    
    .cta-box { padding: 4rem; }
    .cta-actions { flex-direction: row; }
    
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .hamburger { display: none; }
    
    .nav {
        display: flex;
        gap: 2rem;
    }
    
    .header-cta {
        display: inline-flex;
    }
    
    .produtos-grid { grid-template-columns: repeat(4, 1fr); }
    .diff-grid { grid-template-columns: repeat(4, 1fr); }
}
