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

:root {
    --brand-primary: #f59e0b;
    --brand-primary-light: #fbbf24;
    --brand-primary-dark: #d97706;
    --brand-primary-rgb: 245, 158, 11;
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1e1e1e;
    --bg-section-primary: #0a0a0a;
    --bg-section-secondary: #111111;
    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;
    --text: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #6b7280;
    --btn-primary-bg: #f59e0b;
    --btn-primary-hover: #d97706;
    --btn-outline-border: rgba(255, 255, 255, 0.15);
    --btn-outline-hover-bg: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
    --nav-height: 56px;
    --menu-height: 48px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-primary);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Lang Switcher ========== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.lang-switch button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.5;
}

.lang-switch button:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary-light);
}

.lang-switch button.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #000;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
    gap: 6px;
    font-family: inherit;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: #000;
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--btn-outline-border);
}

.btn-outline:hover {
    background: var(--btn-outline-hover-bg);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text);
}

.btn-default {
    color: var(--text-secondary);
}

.btn-lg {
    padding: 12px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========== App Nav ========== */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-nav-header {
    background: #141414;
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
}

.app-nav-header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.app-nav-header .logo {
    flex-shrink: 0;
    text-decoration: none;
}

.logo-art {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    text-transform: uppercase;
}

.app-nav-menu {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    height: var(--menu-height);
}

.app-nav-menu .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-primary {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.menu-primary > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: var(--menu-height);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.menu-primary > li > a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.menu-primary > li.active > a {
    color: var(--brand-primary-light);
    position: relative;
}

.menu-primary > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 1px 1px 0 0;
}

.menu-primary .dropdown {
    position: relative;
}

.menu-primary .dropdown .caret {
    margin-left: 2px;
    opacity: 0.5;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.nav-item-btn {
    margin-left: auto;
}

.nav-item-btn .btn {
    height: 32px;
    padding: 0 16px;
    font-size: 13px;
}

.nav-item-icon-only svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* ========== Banner / Hero ========== */
.main-banner {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.banner-secondary {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0e00 40%, #0d0d0d 70%, #0a0a0a 100%);
}

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

.banner-title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-actions .btn-outline {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.banner-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.banner-svg {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.svg-banner-line {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 1.5;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 4s ease-in-out forwards;
    opacity: 0.4;
}

.svg-banner-line:nth-child(2) { animation-delay: 0.5s; opacity: 0.3; }
.svg-banner-line:nth-child(3) { animation-delay: 1s; opacity: 0.25; }
.svg-banner-line:nth-child(4) { animation-delay: 1.5s; opacity: 0.2; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.svg-banner-shape-right { fill: rgba(245, 158, 11, 0.06); }
.svg-banner-shape-left { fill: rgba(245, 158, 11, 0.04); }

.svg-laptop-bottom-back,
.svg-laptop-bottom-top,
.svg-laptop-touchpad-outside,
.svg-laptop-touchpad-inside,
.svg-laptop-screen-back,
.svg-laptop-screen-front { fill: rgba(245, 158, 11, 0.08); }

.svg-laptop-screen { fill: rgba(245, 158, 11, 0.04); }
.svg-laptop-screen-logo { fill: rgba(245, 158, 11, 0.15); }

/* ========== Site Sections ========== */
.site-section {
    padding: 72px 0;
}

.section-primary { background: var(--bg-section-primary); }
.section-secondary { background: var(--bg-section-secondary); }
.section-features { background: var(--bg-section-primary); }
.section-announcements { background: var(--bg-section-secondary); }

/* ========== Homepage Tiles ========== */
.row {
    display: grid;
    gap: 24px;
}

.homepage-tiles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.tile:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-lg);
    transform: translateY(-2px);
}

.tile-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.tile-icon svg {
    width: 36px;
    height: 36px;
}

.tile h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.tile p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.tile .btn {
    width: 100%;
}

/* ========== Pricing Cards ========== */
.pricing-cards {
    grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-primary);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 1;
}

.pricing-header {
    padding: 28px 24px 16px;
    text-align: center;
}

.pricing-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-body {
    padding: 0 24px 24px;
    text-align: center;
}

.price {
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}

.amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 20px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li::before {
    content: '\2713';
    color: var(--brand-primary);
    font-weight: 700;
    margin-right: 8px;
}

/* ========== Features Grid ========== */
.features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

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

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== Announcements ========== */
.announcement-list {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.announcement-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow);
}

.announcement-date {
    text-align: center;
    min-width: 56px;
    flex-shrink: 0;
}

.date-month {
    display: block;
    background: var(--brand-primary);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.date-day {
    display: block;
    background: var(--bg-card);
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.announcement-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.announcement-content h3 a {
    color: var(--text);
}

.announcement-content h3 a:hover {
    color: var(--brand-primary-light);
}

.announcement-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ========== Footer ========== */
.footer {
    background: #050505;
    color: var(--text-muted);
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .menu-primary > li.nav-item-icon-only .item-text,
    .menu-primary > li:not(.nav-item-icon-only):not(.nav-item-btn) .item-text { display: none; }
}

@media (max-width: 768px) {
    .app-nav-menu { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .menu-primary { flex-wrap: nowrap; }
    .banner-title { font-size: 28px; }
    .homepage-tiles { grid-template-columns: 1fr; }
    .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .announcement-item { flex-direction: column; }
    .announcement-date { display: flex; align-items: center; gap: 8px; min-width: auto; }
    .date-month { border-radius: var(--radius); }
    .date-day { border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 16px; }
}

@media (max-width: 480px) {
    .banner-title { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 24px; }
}
