/* Fortinet mirror — fortinetofficial.com */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --primary: #da291c;
  --primary-dark: #b01f14;
  --primary-light: #fdf0ef;
  --navy: #1a1f36;
  --navy-light: #2d3454;
  --bg: #ffffff;
  --surface: #f5f6fa;
  --surface2: #eef0f7;
  --text: #1a1f36;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #003087;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 12px rgba(26,31,54,.08);
  --shadow-lg: 0 8px 32px rgba(26,31,54,.12);
}

body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); }

/* Typography */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--text); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--text-muted); }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-sub { text-align: center; max-width: 640px; margin: 0 auto 3rem; font-size: 1.1rem; }
.text-white { color: var(--white) !important; }
.text-white-muted { color: rgba(255,255,255,.75) !important; }

/* Buttons */
.btn-primary {
  display: inline-block; background: var(--primary); color: #fff; padding: 13px 28px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid var(--primary); transition: background .2s, transform .1s;
  cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--white); padding: 13px 28px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid rgba(255,255,255,.6); transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-large { padding: 16px 40px; font-size: 1.05rem; }
.btn-cta {
  display: inline-block; background: var(--primary); color: #fff; padding: 10px 22px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem;
  text-decoration: none; border: 2px solid var(--primary); transition: background .2s;
  cursor: pointer; font-family: inherit; white-space: nowrap; line-height: 1;
}
.btn-cta:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.nav { display: flex; align-items: center; height: 68px; gap: 0; padding: 0 24px; box-sizing: border-box; max-width: 100%; overflow: hidden; }
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 32px; }
.logo { height: 36px; width: auto; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); }
.nav-links { display: flex; list-style: none; gap: 4px; flex: 1; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mobile-lang { display: none; }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; order: 99; }

/* Language Switcher Dropdown */
.dropdown { position: relative; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); padding: 7px 12px; border-radius: var(--radius-sm); font-size: .88rem; cursor: pointer; white-space: nowrap; font-family: inherit; transition: border-color .2s; }
.lang-btn:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.dropdown-panel { position: absolute; top: 100%; right: 0; margin-top: 0; padding-top: 8px; display: none; min-width: 130px; z-index: 1000; }
.dropdown-panel a { display: block; background: var(--navy-light); color: rgba(255,255,255,.85); padding: 10px 16px; text-decoration: none; font-size: .9rem; white-space: nowrap; transition: background .15s; }
.dropdown-panel a:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.dropdown-panel a:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.dropdown-panel a:hover { background: var(--primary); color: #fff; }
.dropdown.open .dropdown-panel,
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; min-height: 540px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(26,31,54,.82); }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 48px; padding: 80px 24px; }
.hero-text { flex: 1; }
.hero-text h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { flex: 0 0 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 300px; object-fit: cover; }
.badge { display: inline-block; background: var(--primary); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; }

/* Stats Bar */
.stats-bar { background: var(--primary); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 10px; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; color: var(--text); }

/* Split Section */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-image img { border-radius: var(--radius-lg); width: 100%; height: 380px; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1.5rem; }
.check-list { list-style: none; margin: 0 0 1.5rem; }
.check-list li { padding: 6px 0 6px 28px; position: relative; color: var(--text-muted); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Solutions Preview */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); transition: box-shadow .2s; }
.solution-card:hover { box-shadow: var(--shadow-lg); }
.solution-card img { width: 100%; height: 200px; object-fit: cover; }
.solution-info { padding: 20px; }
.solution-info h3 { margin-bottom: 8px; }
.card-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Trust Grid */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 28px 20px; text-align: center; }
.trust-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-card h3 { color: #fff; margin-bottom: 8px; }
.trust-card p { color: rgba(255,255,255,.7); font-size: .9rem; }

/* CTA Section */
.cta-section { background: var(--primary-light); }
.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { margin-bottom: 2rem; }
.cta-wrap { display: flex; justify-content: center; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); }
.product-icon { font-size: 2rem; margin-bottom: 12px; }
.product-card h3 { color: var(--text); margin-bottom: 8px; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-card); }
.pricing-tier { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 8px; }
.pricing-product { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { padding: 6px 0 6px 22px; position: relative; color: var(--text-muted); font-size: .9rem; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 80px 0; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero .hero-sub { color: rgba(255,255,255,.8); max-width: 640px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; margin-bottom: 4px; color: var(--text); }
.contact-form-box { background: var(--surface); border-radius: var(--radius-md); padding: 32px; }
.contact-form h2 { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; color: var(--text); background: var(--bg); }
.contact-form textarea { resize: vertical; }

/* FAQ */
.faq { margin: 1rem 0; }
.faq dt { font-weight: 600; color: var(--text); margin-top: 1.2rem; margin-bottom: .4rem; }
.faq dd { color: var(--text-muted); margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--primary); }

/* Legal */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-bottom: 1.5rem; }
.legal-content h3 { margin: 2rem 0 .75rem; color: var(--text); }
.legal-content p { margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center; font-size: .85rem; }

/* Tables — prevent Chinese text from rendering vertically */
table { border-collapse: collapse; }
table td, table th { white-space: normal; word-break: break-word; vertical-align: top; }

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav { position: relative; overflow: visible; }
  .brand { padding-left: 4px; }
  .nav-toggle { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    height: auto;
    max-height: none;
    overflow: visible;
    background: var(--navy-light);
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 1rem; }
  .nav-links > li.mobile-lang { display: flex; justify-content: center; padding: 12px 0; }
  .nav-links > li.mobile-lang .lang-btn { color: rgba(255,255,255,.85); }
  .nav-links > li.mobile-lang .dropdown-panel { position: static; padding-top: 0; display: none; }
  .nav-links > li.mobile-lang .dropdown.open .dropdown-panel { display: block; }
  .nav-right { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { flex-direction: column; padding: 48px 24px; }
  .hero-image { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .split-image { order: -1; }
  .solutions-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-cta, .hero-cta, .cta-button, .btn-primary {
    display: block; margin-left: auto; margin-right: auto;
    text-align: center; width: max-content; max-width: 90%;
  }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: auto; margin: 0 auto; }
  .cta-wrap { display: flex; justify-content: center; width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
}
