:root {
  /* Brand Colors */
  --parchment: #FDFCF0;
  --ink: rgb(27, 67, 50);
  --forest: #1B4332;
  --forest-dark: #0f2818;
  --terracotta: #BC4749;
  --stone: #F2F0E9;
  --stone-hover: #EEEDE4;
  
  /* Styling Tokens */
  --border-subtle: 1px solid rgba(0, 0, 0, 0.03);
  --border-divider: 1px solid #f0ede5;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-deep: 0 30px 60px rgba(27, 67, 50, 0.08);
  --shadow-hover: 0 40px 80px rgba(27, 67, 50, 0.12);
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-3xl: 40px;
  --transition-main: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-quick: all 0.3s ease;
}

/* 1. Base Reset & Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--parchment);
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: -14rem;
    left: -12rem;
    width: 56rem;
    height: 56rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at center,
            rgba(187, 115, 116, 0.62) 0%,
            rgba(187, 115, 116, 0.34) 32%,
            rgba(187, 115, 116, 0.12) 52%,
            rgba(187, 115, 116, 0) 72%);
    filter: blur(22px);
    transform: translate3d(0, 0, 0);
    animation: orbit-drift 24s ease-in-out infinite alternate;
}

#root, main {
    position: relative;
    z-index: 1;
}

@keyframes orbit-drift {
    0% { transform: translate3d(-8vw, -6vh, 0) scale(0.96); }
    25% { transform: translate3d(30vw, 6vh, 0) scale(1.03); }
    50% { transform: translate3d(46vw, 42vh, 0) scale(0.98); }
    75% { transform: translate3d(16vw, 68vh, 0) scale(1.02); }
    100% { transform: translate3d(-10vw, 30vh, 0) scale(0.97); }
}

@keyframes pulse-smooth {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* 2. Shared Components */

/* --- Card Pattern --- */
.card-style {
    background: var(--stone);
    border-radius: var(--radius-xl);
    border: var(--border-subtle);
    box-shadow: var(--shadow-deep);
    transition: var(--transition-main);
}

.card-style:hover {
    background: var(--stone-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* --- Button Pattern --- */
.btn-primary,
.btn-secondary,
.btn-login,
.btn-trial {
    padding: 0.7rem 1.8rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-quick);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--forest);
    color: var(--parchment);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary:hover { background-color: var(--forest-dark); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--forest);
    color: var(--forest);
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-secondary:hover { background-color: #f5f1e8; }

.btn-login {
    background: transparent;
    border: 2px solid var(--forest);
    color: var(--forest);
    padding: 0.6rem 1.5rem;
}

.btn-login:hover { background-color: var(--forest); color: var(--parchment); }

.btn-trial {
    background-color: var(--forest);
    color: var(--parchment);
    border: none;
}

.btn-trial:hover { background-color: var(--forest-dark); }


/* 3. Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--parchment);
    border-bottom: var(--border-divider);
}

.logo {
    font-family: "Fraunces", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

nav { display: flex; gap: 2rem; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}
nav a:hover { opacity: 0.7; }

.nav-buttons { display: flex; gap: 1rem; align-items: center; }


/* 4. Page Sections */

/* --- Hero --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 4rem auto;
    position: relative;
    background: var(--stone);
    border-radius: var(--radius-3xl);
    border: var(--border-subtle);
    box-shadow: var(--shadow-deep);
    transition: var(--transition-main);
}

.hero:hover {
    background: var(--stone-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-content h1 {
    font-family: "Fraunces", serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--ink);
}

.hero-content h1 .highlight { color: var(--terracotta); }
.hero-content p { font-size: 1.1rem; color: #666; margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; }
.hero-tagline { font-size: 0.85rem; color: var(--terracotta); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.pulse-dot { color: var(--terracotta); display: inline-block; animation: pulse-smooth 2s infinite ease-in-out; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }


/* --- Carousel --- */
.carousel-section { padding: 4rem 2rem; max-width: 1400px; margin: 0 auto; }
.carousel-container { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.carousel { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; display: flex; justify-content: center; align-items: center; background: white; }
.carousel-slide img { max-width: 100%; height: auto; max-height: 500px; object-fit: contain; }
.carousel-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background-color: #ddd; border: none; cursor: pointer; transition: var(--transition-quick); }
.carousel-dot.active { background-color: var(--forest); width: 30px; border-radius: 6px; }


/* --- Operational Grid --- */
.operational-section { padding: 8rem 2rem; position: relative; background: transparent; overflow: hidden; }
.operational-container { max-width: 1400px; margin: 0 auto; }
.operational-section h2 { font-family: "Fraunces", serif; font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--forest); max-width: 600px; }
.operational-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem; }

.operational-card {
    background: var(--stone);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-main);
    border: var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.operational-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: var(--stone-hover);
}

.operational-card .feature-icon { color: var(--forest); display: flex; justify-content: flex-start; }
.operational-card .feature-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.operational-card h3 { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 700; color: var(--forest); margin: 0; }
.operational-card p { font-size: 0.95rem; color: #555; line-height: 1.6; margin: 0; }


/* --- Pricing --- */
.pricing-section { background: transparent; padding: 4rem 2rem; margin-top: 3rem; }
.pricing-header { text-align: center; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.pricing-header h2 { font-family: "Fraunces", serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--ink); }
.pricing-header p { font-size: 1rem; color: #666; line-height: 1.6; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; }

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid #e0dcd4;
    transition: var(--transition-quick);
}

.pricing-card.popular { border: 2px solid var(--forest); position: relative; transform: scale(1.05); }
.pricing-badge { position: absolute; top: -12px; right: 20px; background-color: var(--forest); color: var(--parchment); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-card h3 { font-family: "Fraunces", serif; font-size: 1.5rem; margin-bottom: 1rem; color: var(--ink); }
.pricing-price { font-size: 3rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.pricing-period { font-size: 0.9rem; color: #999; margin-bottom: 1.5rem; }
.pricing-description { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0; font-size: 0.95rem; color: #666; }
.pricing-features li:before { content: "✓ "; color: var(--forest); font-weight: 700; margin-right: 0.5rem; }
.pricing-card .btn-trial { width: 100%; margin-bottom: 1rem; }
.pricing-footer { text-align: center; font-size: 0.85rem; color: #999; margin-top: 2rem; }


/* --- Legal --- */
.legal-page { padding: 6rem 2rem; position: relative; }
.legal-container { max-width: 800px; margin: 0 auto; background: var(--stone); padding: 4rem; border-radius: var(--radius-2xl); box-shadow: var(--shadow-hover); }
.fraunces-title { font-family: "Fraunces", serif; font-size: 2.5rem; font-weight: 700; color: var(--forest); margin-bottom: 0.5rem; }
.legal-subtitle { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--forest); }
.legal-date { font-size: 0.9rem; color: #666; margin-bottom: 2rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--forest); margin-bottom: 1rem; margin-top: 2.5rem; }
.legal-section p, .legal-section ul { margin-bottom: 1rem; color: #444; }
.legal-section ul { margin-left: 1.5rem; list-style: disc; }
.legal-section li { margin-bottom: 0.5rem; }
.legal-divider { margin: 4rem 0; border: 0; border-top: 1px solid rgba(0,0,0,0.1); }
.legal-footer { margin-top: 3rem; text-align: center; }


/* 5. Footer */
footer { background-color: var(--parchment); border-top: var(--border-divider); padding: 2rem; text-align: center; color: #999; font-size: 0.9rem; }
footer a { color: #666; text-decoration: none; margin: 0 1rem; transition: color 0.3s ease; }
footer a:hover { color: var(--ink); }


/* 6. Media Queries & Accessibility */
@media (prefers-reduced-motion: reduce) {
    body::before, .pulse-dot { animation: none !important; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; }
    nav { flex-direction: column; gap: 1rem; width: 100%; }
    .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; margin: 1rem; border-radius: var(--radius-xl); }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
    .operational-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .legal-container { padding: 2rem; }
}