/* 
   杏花云 (Apricot Cloud) 
   Premium Nocturnal Identity 
*/

:root {
    /* Palette */
    --bg-navy: #1A1D26;
    --primary-gold: #E5B072;
    --accent-ember: #C96F4A;
    --text-parchment: #EDE7DC;
    --gold-hairline: rgba(229, 176, 114, 0.2);
    
    /* Typography */
    --font-ui: 'Manrope', sans-serif;
    --font-serif: 'Noto Serif SC', 'Fraunces', serif;
    --font-display: 'Fraunces', serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-navy);
    color: var(--text-parchment);
    font-family: var(--font-ui);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Classes */
.serif-heading {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-parchment);
}

.oversized-serif {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.en-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
}

.label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
}

.accent-text {
    color: var(--accent-ember);
}

p {
    color: rgba(237, 231, 220, 0.75); /* Soften parchment text slightly */
}

/* Links */
a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.6s ease;
}

.text-link {
    position: relative;
    color: var(--primary-gold);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-gold);
    transition: width 0.6s ease;
}

.text-link:hover::after {
    width: 0;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .label {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

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

/* Navbar */
.navbar {
    padding: 30px 0;
    border-bottom: 1px solid var(--gold-hairline);
    background-color: var(--bg-navy);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-gold);
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-parchment);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-gold);
    transition: width 0.6s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    transition: all 0.6s ease;
}

.btn-ghost:hover {
    background-color: var(--primary-gold);
    color: var(--bg-navy);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
}

/* Subtle Film-grain texture generated via SVG background mask */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero .label {
    display: block;
    margin-bottom: 30px;
}

.hero-intro {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Card Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ai-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Dark Cards with Single Gold Top Border */
.card {
    background-color: #1A1D26; /* Flat planes of color only */
    border: none;
    border-top: 1px solid var(--primary-gold);
    padding: 50px 40px;
    transition: all 0.6s ease;
}

.card:hover {
    background-color: #1c1f2a;
}

/* Decorative Numbers (Fraunces Italic) */
.decorative-index {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--primary-gold);
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Pricing Overrides */
.pricing .card {
    text-align: center;
    position: relative;
}

.pricing .label {
    color: var(--primary-gold);
}

.pricing .price {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-parchment);
    margin: 30px 0;
    line-height: 1;
}

.price .currency {
    font-size: 2rem;
    vertical-align: top;
    margin-right: 5px;
}

.price .period {
    font-size: 1rem;
    font-family: var(--font-ui);
    color: rgba(237, 231, 220, 0.5);
    margin-left: 5px;
}

.feature-list {
    list-style: none;
    margin-bottom: 50px;
    text-align: left;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gold-hairline);
    color: rgba(237, 231, 220, 0.75);
}

.feature-list li:last-child {
    border-bottom: none;
}

.popular-tag {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.popular-card {
    border-top: 2px solid var(--accent-ember);
}

/* Footer */
footer {
    border-top: 1px solid var(--gold-hairline);
    padding: 80px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-logo .nav-logo {
    width: 50px;
    height: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links a {
    color: rgba(237, 231, 220, 0.5);
}

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

.copyright {
    color: rgba(237, 231, 220, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .oversized-serif {
        font-size: 3.5rem;
    }
    
    .card-grid, .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .oversized-serif {
        font-size: 2.5rem;
    }
    
    .card-grid, .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}
