/* Horizon Nautical Minimalism & Tactile Ceramic Theme */
:root {
    --primary: #d97706; /* Brushed Nautical Brass */
    --primary-hover: #b45309;
    --bg-color: #f8fafd; /* Sea-horizon porcelain white */
    --bg-light: #ffffff;
    --text-main: #0a192f; /* Deep nautical navy */
    --text-muted: #475569;
    --border-color: rgba(10, 25, 47, 0.08);
    --card-bg: rgba(255, 255, 255, 0.85);
    --nav-bg: rgba(248, 250, 253, 0.85);
    --beacon-on: #10b981; /* Emerald green beacon */
    --badge-bg: #d97706;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-shadow: 0 10px 30px rgba(10, 25, 47, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] {
    --primary: #f59e0b; /* Brightened brass for dark mode */
    --primary-hover: #d97706;
    --bg-color: #040d1a; /* Midnight ocean depth */
    --bg-light: #071324;
    --text-main: #f8fafd;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(7, 19, 36, 0.75);
    --nav-bg: rgba(4, 13, 26, 0.85);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center; height: 72px;
}
.logo {
    font-size: 1.6rem; font-weight: 800; color: var(--text-main); letter-spacing: 2px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Theme Toggle Button */
.theme-btn {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-main); cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.theme-btn:hover { background-color: var(--border-color); }
.theme-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition); border: 1px solid transparent;
}
.btn-large { padding: 14px 36px; font-size: 1.05rem; }
.btn-primary { background-color: var(--text-main); color: var(--bg-color); }
.btn-primary:hover {
    background-color: var(--primary); color: #fff;
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}
.btn-secondary { background-color: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { border-color: var(--text-main); }
.btn-outline { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: #fff; }

/* Porcelain Ceramic Cards */
.porcelain-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}
.porcelain-card:hover { transform: translateY(-4px); border-color: var(--primary); }

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    position: relative;
}
.hero::before { /* Subtle background texture (fine hairlines) */
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px; opacity: 0.3; z-index: -1;
}
.hero-container {
    display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.hero-text { flex: 1; max-width: 600px; }
.hero-title { font-size: 3.2rem; font-weight: 800; margin-bottom: 24px; line-height: 1.25; color: var(--text-main); }
.highlight { color: var(--primary); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 20px; }

/* Hero Tactile Widget (Parallax) */
.hero-widget-wrapper {
    flex: 1; display: flex; justify-content: center; perspective: 1000px;
}
.porcelain-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px; width: 340px;
    box-shadow: var(--glass-shadow), 0 20px 40px rgba(0,0,0,0.08);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Controlled by JS */
    display: flex; flex-direction: column; align-items: center;
}
.widget-header {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; font-size: 0.75rem; color: var(--text-muted);
}
.hairline-coordinates { font-family: monospace; letter-spacing: 1px; }
.signal-bars { display: flex; gap: 3px; align-items: flex-end; height: 12px; }
.signal-bars .bar { width: 3px; background-color: var(--border-color); border-radius: 1px; }
.signal-bars .bar:nth-child(1) { height: 4px; }
.signal-bars .bar:nth-child(2) { height: 7px; }
.signal-bars .bar:nth-child(3) { height: 10px; }
.signal-bars .bar:nth-child(4) { height: 12px; }
.signal-bars .bar.active { background-color: var(--text-main); }

/* Brass Compass Toggle */
.compass-dial {
    width: 140px; height: 140px; border-radius: 50%;
    background: linear-gradient(145deg, var(--bg-color), var(--card-bg));
    border: 4px solid var(--border-color);
    box-shadow: 10px 10px 20px rgba(0,0,0,0.05), -10px -10px 20px rgba(255,255,255,0.5);
    position: relative; display: flex; align-items: center; justify-content: center;
    cursor: pointer; outline: none; margin-bottom: 40px;
    transition: border-color 0.3s;
}
[data-theme="dark"] .compass-dial { box-shadow: 5px 5px 15px rgba(0,0,0,0.5), -5px -5px 15px rgba(255,255,255,0.02); }
.compass-dial:hover { border-color: var(--primary); }
.dial-ring {
    position: absolute; width: 110px; height: 110px; border-radius: 50%;
    border: 1px dashed var(--text-muted); opacity: 0.3;
}
.compass-needle {
    width: 70px; height: 70px; color: var(--primary);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Elastic spring */
    z-index: 2;
}
.dial-center {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    background: var(--text-main); border: 2px solid var(--card-bg); z-index: 3;
}
.widget-footer { text-align: center; }
.widget-title { font-weight: 700; color: var(--text-main); margin-bottom: 8px; font-size: 1.1rem; }
.status-indicator { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.beacon { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: var(--text-muted); transition: background-color 0.4s; }
.beacon.active { background-color: var(--beacon-on); box-shadow: 0 0 10px var(--beacon-on); }

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

/* Features */
.nautical-icon {
    width: 48px; height: 48px; margin-bottom: 24px; color: var(--primary);
}
.porcelain-card h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--text-main); }

/* Media & AI Cards */
.media-ai-card { padding: 0; overflow: hidden; height: 320px; position: relative; border: none; }
.card-image { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; }
.media-bg { background: linear-gradient(135deg, #0a192f 0%, #1e293b 100%); }
.ai-bg { background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%); }
.brass-accent-line { width: 40px; height: 3px; background-color: var(--primary); margin-bottom: 16px; }
.overlay-text {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 32px 32px;
    background: linear-gradient(to top, rgba(10,25,47,0.95), transparent); color: #fff;
}
.overlay-text h3 { color: #fff; }
.overlay-text p { color: #cbd5e1; font-size: 0.95rem; }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.popular { border: 2px solid var(--primary); }
.badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background-color: var(--badge-bg); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.price { font-size: 2.8rem; font-weight: 800; margin: 20px 0 30px; color: var(--text-main); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-list { flex-grow: 1; margin-bottom: 30px; }
.pricing-list li {
    margin-bottom: 12px; color: var(--text-muted); position: relative; padding: 8px 12px 8px 28px;
    border-radius: 6px; transition: var(--transition);
}
.pricing-list li::before {
    content: '·'; position: absolute; left: 8px; color: var(--border-color); font-weight: bold; font-size: 1.2rem; line-height: 1; transition: var(--transition);
}
.pricing-list li:hover { background-color: rgba(148, 163, 184, 0.1); color: var(--text-main); }
.pricing-list li:hover::before { content: '📍'; color: var(--primary); font-size: 0.9rem; left: 8px; top: 10px; }
.pricing-actions { display: flex; flex-direction: column; gap: 12px; }
.copy-sub-btn {
    background: transparent; border: 1px dashed var(--border-color); color: var(--text-muted);
    padding: 10px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: var(--transition);
}
.copy-sub-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(217, 119, 6, 0.05); }
.copy-sub-btn.copied { border-color: var(--beacon-on); color: var(--beacon-on); background: rgba(16, 185, 129, 0.1); border-style: solid; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 20px; padding: 24px 32px; }
.faq-question { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; color: var(--text-main); }
.faq-answer { color: var(--text-muted); }

/* Toast Notification */
.toast {
    position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
    background-color: var(--text-main); color: var(--bg-color);
    padding: 12px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 8px;
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
}
.toast.show { bottom: 40px; opacity: 1; visibility: visible; }
.toast-icon { color: var(--beacon-on); }

/* Footer */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }
.footer-copyright { color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { margin-bottom: 40px; }
    .hero-actions { justify-content: center; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero::before { background-size: 40px 40px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .porcelain-widget { width: 100%; }
}
