/* ==================== 
   Design Variables & Reset
   ==================== */
:root {
    /* Brand Colors */
    --color-brand: #25D366;
    --color-brand-dark: #128C7E;
    --color-brand-light: #DCF8C6;

    /* Neutral / Grayscale Palette */
    --color-bg-body: #FFFFFF;
    --color-bg-section: #F8F9FA;
    --color-bg-card: #FFFFFF;
    
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #5F6368;
    --color-text-muted: #8A8D91;
    --color-border: #E0E0E0;

    /* Typography */
    --font-stack: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --text-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    
    /* Spacing & Layout */
    --container-max-width: 1200px;
    --spacing-section: clamp(3rem, 6vw, 5rem);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-default: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-stack);
    font-size: var(--text-size-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-body);
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-default);
}

ul, ol {
    list-style: none;
}

/* ==================== 
   Layout & Containers
   ==================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section-wrapper {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

.section-wrapper--alt {
    background-color: var(--color-bg-section);
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid--2cols { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ==================== 
   Typography & Headings
   ==================== */
h1, h2, h3, h4 {
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--color-text-primary);
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.5em; }
p { margin-bottom: 1.25em; }

.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 1rem; }

/* ==================== 
   Components: Buttons
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-default);
    border: 2px solid transparent;
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.4);
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-brand);
    color: #FFFFFF;
}

.btn--primary:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-brand-dark);
    border-color: var(--color-brand);
}

.btn--secondary:hover {
    background-color: rgba(37, 211, 102, 0.06);
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

/* ==================== 
   Header & Navigation
   ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 36px;
    width: auto;
    margin-right: 0.75rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-list {
    display: flex;
    gap: clamp(1rem, 2vw, 2.5rem);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
}

.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--color-brand-dark);
}

.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-brand);
}

/* Mobile nav toggle placeholder */
.mobile-toggle { display: none; }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-list { display: none; }
}

/* ==================== 
   Components: Cards & Tables
   ==================== */
.card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--color-brand);
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--color-brand);
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.spec-table th, .spec-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.spec-table th {
    background-color: var(--color-bg-section);
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) { background-color: rgba(0,0,0,0.015); }

/* ==================== 
   Components: FAQ
   ==================== */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
    transition: color var(--transition-default);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-brand);
    transition: transform var(--transition-default);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover { color: var(--color-brand-dark); }

.faq-answer {
    padding-bottom: 1.25rem;
    color: var(--color-text-secondary);
    animation: fadeIn 0.3s ease-out;
}

/* ==================== 
   Footer
   ==================== */
.site-footer {
    background-color: #111111;
    color: #9AA0A6;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo img { height: 28px; filter: grayscale(1) brightness(2); opacity: 0.8; }

.copyright {
    border-top: 1px solid #2C2D2F;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
    color: #5F6368;
}

/* ==================== 
   SVG Motion & Animation
   ==================== */
.svg-wave-group path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pathLength: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.anim-wave {
    animation: wave-rise 6s ease-in-out infinite alternate;
}

.anim-wave-delay-1 { animation-delay: -2s; }
.anim-wave-delay-2 { animation-delay: -4s; }

@keyframes wave-rise {
    0%, 100% { stroke-dashoffset: 0; transform: translateY(0); }
    50% { stroke-dashoffset: 1; transform: translateY(-8px); }
}

.anim-pulse {
    animation: pulse-opacity 5s ease-in-out infinite alternate;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
    .anim-wave, .anim-pulse { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
}

