/* ================================
   Rematter — Design System
   ================================ */

:root {
    /* Primary Colors - Forest Green Palette */
    --green-900: #1a4d2e;
    --green-800: #22633a;
    --green-700: #2a7a47;
    --green-600: #339155;
    --green-500: #3da863;
    --green-400: #5cb97a;
    --green-300: #7eca91;
    --green-200: #a3dbb0;
    --green-100: #c9eccf;
    --green-50: #eef9ef;
    
    /* Neutrals - Warm Gray */
    --neutral-950: #0f0f0e;
    --neutral-900: #1a1a18;
    --neutral-800: #2d2d2a;
    --neutral-700: #45453f;
    --neutral-600: #5e5e56;
    --neutral-500: #78786e;
    --neutral-400: #949489;
    --neutral-300: #b0b0a5;
    --neutral-200: #cdcdc2;
    --neutral-100: #e8e8e2;
    --neutral-50: #f7f7f4;
    
    /* Accent */
    --cream: #faf9f5;
    --cream-dark: #f0efe8;
    
    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ================================
   Reset & Base
   ================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ================================
   Layout
   ================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
}

/* ================================
   Components
   ================================ */

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: var(--space-md);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header p {
    margin: var(--space-md) auto 0;
    color: var(--neutral-600);
    font-size: 1.125rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--green-700);
    color: white;
}

.btn-primary:hover {
    background: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 122, 71, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-800);
    border: 1.5px solid var(--neutral-300);
}

.btn-secondary:hover {
    border-color: var(--green-600);
    color: var(--green-700);
}

.btn-full {
    width: 100%;
}

/* ================================
   Navigation
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(250, 249, 245, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--green-800);
}

.logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--green-700);
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--green-700);
    color: white !important;
    border-radius: 100px;
}

.nav-cta:hover {
    background: var(--green-800);
}

/* ================================
   Hero Section
   ================================ */

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--green-100) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--green-50) 0%, transparent 40%);
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: var(--space-xl);
    animation: fadeSlideUp 0.6s ease forwards;
}

.hero h1 {
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
    animation: fadeSlideUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    color: var(--green-700);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    max-width: 540px;
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeSlideUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--green-200);
}

.circle-1 {
    width: 100%;
    height: 100%;
    animation: rotate 60s linear infinite;
}

.circle-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation: rotate 45s linear infinite reverse;
}

.circle-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    background: radial-gradient(circle, var(--green-50) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Stats Bar
   ================================ */

.stats-bar {
    background: var(--green-800);
    padding: var(--space-2xl) 0;
}

.stats-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--green-200);
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--green-600);
}

/* ================================
   About Section
   ================================ */

.about-section {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content .lead {
    font-size: 1.125rem;
    color: var(--neutral-700);
    margin-bottom: var(--space-md);
}

.about-content p {
    color: var(--neutral-600);
    margin-bottom: var(--space-xl);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature {
    display: flex;
    gap: var(--space-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: 12px;
    color: var(--green-700);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature h4 {
    margin-bottom: var(--space-xs);
}

.feature p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    margin: 0;
}

.about-visual {
    position: relative;
}

.visual-card {
    position: relative;
    background: var(--green-800);
    border-radius: 24px;
    padding: var(--space-3xl);
    overflow: hidden;
}

.card-pattern {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
}

.visual-card blockquote {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 400;
    color: white;
    line-height: 1.5;
}

/* ================================
   Process Section
   ================================ */

.process-section {
    background: var(--neutral-950);
    color: white;
}

.process-section .section-tag {
    color: var(--green-400);
}

.process-section h2 {
    color: white;
}

.process-section .section-header p {
    color: var(--neutral-400);
}

.process-timeline {
    display: grid;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
    animation: fadeSlideUp 0.5s ease forwards;
    animation-delay: calc(var(--delay) * 0.1s);
    opacity: 0;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--green-600);
    transform: translateX(8px);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--green-500);
    line-height: 1;
}

.step-content h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--neutral-400);
    font-size: 0.9375rem;
    margin: 0;
}

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

.cta-section {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-lg);
}

.cta-content p {
    color: var(--green-100);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   Applications Section
   ================================ */

.applications-section {
    background: var(--cream);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.app-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: 20px;
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--green-200);
}

.app-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: 14px;
    color: var(--green-700);
    margin-bottom: var(--space-lg);
}

.app-icon svg {
    width: 28px;
    height: 28px;
}

.app-card h3 {
    margin-bottom: var(--space-sm);
}

.app-card p {
    color: var(--neutral-600);
    font-size: 0.9375rem;
    margin: 0;
}

/* ================================
   Material Specs
   ================================ */

.material-specs {
    background: var(--cream-dark);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.specs-content h2 {
    margin-bottom: var(--space-md);
}

.specs-content p {
    color: var(--neutral-600);
}

.specs-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--neutral-100);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--neutral-100);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--neutral-600);
}

.spec-value {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--green-800);
}

/* ================================
   Contact Section
   ================================ */

.contact-section {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info h2 {
    margin-bottom: var(--space-lg);
}

.contact-info p {
    color: var(--neutral-600);
    margin-bottom: var(--space-2xl);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--green-700);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--green-800);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

.contact-form-wrapper {
    background: white;
    padding: var(--space-2xl);
    border-radius: 24px;
    border: 1px solid var(--neutral-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--neutral-200);
    border-radius: 10px;
    background: var(--cream);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-500);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--neutral-950);
    color: var(--neutral-300);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--neutral-800);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    max-width: 400px;
    color: var(--neutral-500);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--neutral-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .about-grid,
    .specs-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-3xl) 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .stats-bar .container {
        flex-direction: column;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

