/* ===== Clash Verge iOS (c27) — Apple Native Style ===== */
:root {
  --ios-blue: #10b981;
  --ios-green: #34C759;
  --ios-pink: #FF2D55;
  --ios-orange: #FF9500;
  --ios-purple: #AF52DE;
  --ios-teal: #5AC8FA;
  --ios-indigo: #5856D6;
  --primary: #10b981;
  --primary-dark: #059669;
  --bg-page: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-header: rgba(242,242,247,0.8);
  --text: #000000;
  --text-secondary: #3C3C43;
  --text-tertiary: #8E8E93;
  --text-quaternary: #C7C7CC;
  --separator: #E5E5EA;
  --separator-opaque: #C6C6C8;
  --fill: #F2F2F7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', sans-serif;
  background: var(--bg-page); color: var(--text);
  line-height: 1.5; overflow-x: hidden;
}

/* Navbar — iOS frosted glass */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background: var(--bg-header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}
.navbar .container {
  max-width:1020px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; height:52px;
}
.logo {
  display:flex; align-items:center; gap:8px;
  font-size:17px; font-weight:600; color:var(--text);
  text-decoration:none; white-space:nowrap; flex-shrink:0;
  letter-spacing: -0.02em;
}
.logo-icon {
  width:30px; height:30px; border-radius:7px;
  background: var(--primary); display:flex; align-items:center; justify-content:center;
  font-size:15px; flex-shrink:0; color:#fff;
}
.navbar-nav {
  display:flex; align-items:center; gap:0; flex-shrink:0;
  list-style:none; margin:0; padding:0;
}
.nav-link {
  padding:6px 14px; border-radius:8px;
  font-size:13px; font-weight:500; color:var(--text-secondary);
  text-decoration:none; transition:var(--transition);
  letter-spacing:-0.01em;
}
.nav-link:hover { color:var(--primary); background:rgba(16,185,129,0.06); }
.nav-link.active { color:var(--primary); }
.nav-cta {
  background:var(--primary); color:#fff !important;
  font-weight:600; border-radius:var(--radius-sm);
}
.nav-cta:hover { background:var(--primary-dark) !important; box-shadow:var(--shadow-sm); }
.mobile-menu-btn {
  display:none; width:36px; height:36px; align-items:center; justify-content:center;
  border:none; background: none; cursor:pointer; font-size:18px; color:var(--primary);
}

/* Container */
.container { max-width:1020px; margin:0 auto; padding:0 24px; }

/* Hero */
.hero {
  padding:110px 0 60px; text-align:center;
}
.hero-label {
  font-size:13px; font-weight:600; color:var(--primary);
  text-transform:uppercase; letter-spacing:0.05em; margin-bottom:12px;
}
.hero h1 {
  font-size:48px; font-weight:800; letter-spacing:-0.03em;
  line-height:1.1; margin-bottom:14px; color:var(--text);
}
.hero h1 .accent { color:var(--primary); }
.hero p {
  font-size:18px; color:var(--text-secondary);
  max-width:560px; margin:0 auto 30px; letter-spacing:-0.01em;
}
.hero-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* SF-Style Page Header */
.page-header {
  padding:100px 0 40px; text-align:center;
}
.page-header .label {
  font-size:13px; font-weight:600; color:var(--primary);
  text-transform:uppercase; letter-spacing:0.05em; margin-bottom:10px;
}
.page-header h1 {
  font-size:38px; font-weight:800; letter-spacing:-0.03em;
  color:var(--text); margin-bottom:8px;
}
.page-header p {
  font-size:16px; color:var(--text-secondary);
}

/* Buttons */
.btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:12px 26px; border-radius: 12px;
  font-size:15px; font-weight:600; text-decoration:none;
  transition:var(--transition); border:none; cursor:pointer;
  letter-spacing:-0.01em;
}
.btn-filled {
  background:var(--primary); color:#fff;
  box-shadow:0 2px 8px rgba(16,185,129,0.25);
}
.btn-filled:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:0 4px 14px rgba(16,185,129,0.35); }
.btn-tinted {
  background:rgba(16,185,129,0.1); color:var(--primary);
}
.btn-tinted:hover { background:rgba(16,185,129,0.18); }
.btn-plain { background:var(--bg-card); color:var(--primary); box-shadow:var(--shadow-sm); }
.btn-plain:hover { box-shadow:var(--shadow); transform:translateY(-1px); }
.btn-sm { padding:9px 18px; font-size:13px; }

/* Sections */
.section { padding:50px 0; }
.section-head { margin-bottom:36px; }
.section-head .eyebrow {
  font-size:13px; font-weight:600; color:var(--primary);
  text-transform:uppercase; letter-spacing:0.04em; margin-bottom:6px;
}
.section-head h2 {
  font-size:30px; font-weight:800; letter-spacing:-0.03em;
  color:var(--text);
}
.section-head p { font-size:15px; color:var(--text-secondary); margin-top:6px; max-width:480px; }

/* iOS-style inset grouped cards */
.inset-group {
  background:var(--bg-card);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  margin-bottom:16px;
}
.inset-item {
  display:flex; align-items:center; gap:14px;
  padding:14px 20px;
  border-bottom:0.5px solid var(--separator);
  font-size:14px; color:var(--text-secondary);
  transition:var(--transition);
}
.inset-item:last-child { border-bottom:none; }
.inset-item:hover { background:rgba(16,185,129,0.03); }
.inset-icon {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}

/* Stats row */
.stats-row { display:flex; justify-content:center; gap:40px; padding:32px 0; flex-wrap:wrap; }
.stat-item { text-align:center; }
.stat-num { font-size:34px; font-weight:800; color:var(--primary); letter-spacing:-0.03em; }
.stat-label { font-size:13px; color:var(--text-tertiary); margin-top:2px; }

/* Feature Grid — iOS card style */
.feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.feat-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow-sm); transition:var(--transition);
}
.feat-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.feat-icon { font-size:26px; margin-bottom:12px; display:block; }
.feat-card h3 { font-size:16px; font-weight:700; margin-bottom:6px; letter-spacing:-0.01em; }
.feat-card p { font-size:13px; color:var(--text-secondary); line-height:1.55; }

/* Platform Grid */
.plat-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.plat-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:20px 12px; text-align:center; box-shadow:var(--shadow-sm); transition:var(--transition);
}
.plat-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.plat-icon { font-size:30px; margin-bottom:8px; display:block; }
.plat-card h4 { font-size:13px; font-weight:600; }
.plat-card p { font-size:11px; color:var(--text-tertiary); }

/* Download */
.dl-channels { display:flex; gap:6px; margin-bottom:28px; justify-content:center; flex-wrap:wrap; }
.ch-tab {
  padding:8px 18px; border-radius:8px; font-size:13px; font-weight:600;
  cursor:pointer; border:none; background:var(--fill); color:var(--text-secondary);
  transition:var(--transition);
}
.ch-tab:hover { background:rgba(16,185,129,0.08); color:var(--primary); }
.ch-tab.active { background:var(--primary); color:#fff; }
.dl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.dl-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:22px; cursor:pointer; box-shadow:var(--shadow-sm); transition:var(--transition);
}
.dl-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.dl-card-head { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.dl-card-icon { font-size:22px; }
.dl-card h4 { font-size:14px; font-weight:600; }
.dl-meta { font-size:11px; color:var(--text-tertiary); margin-bottom:12px; }
.dl-card .btn { width:100%; justify-content:center; }

/* Detail Cards (features) */
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.detail-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow-sm); transition:var(--transition);
}
.detail-card:hover { box-shadow:var(--shadow); }
.detail-card .dc-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.detail-card .dc-icon { font-size:24px; }
.detail-card .dc-status {
  font-size:10px; padding:2px 8px; border-radius:6px; font-weight:600;
  background:rgba(52,199,89,0.12); color:var(--ios-green);
}
.detail-card h3 { font-size:16px; font-weight:700; }
.detail-card p { font-size:13px; color:var(--text-secondary); line-height:1.6; margin-bottom:8px; }
.detail-card ul { list-style:none; padding:0; }
.detail-card ul li { padding:3px 0; font-size:12px; color:var(--text-secondary); display:flex; align-items:center; gap:6px; }
.detail-card ul li::before { content:''; width:4px; height:4px; border-radius:50%; background:var(--primary); flex-shrink:0; }

/* Tables */
.ios-table {
  width:100%; border-collapse:collapse;
  background:var(--bg-card); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-sm); margin-bottom:28px;
}
.ios-table th, .ios-table td { padding:13px 18px; text-align:left; font-size:13px; }
.ios-table thead th { color:var(--text-tertiary); font-weight:500; text-transform:uppercase; font-size:11px; letter-spacing:0.04em; border-bottom:0.5px solid var(--separator); }
.ios-table tbody td { border-bottom:0.5px solid var(--separator); color:var(--text-secondary); }
.ios-table tbody tr:last-child td { border-bottom:none; }
.tag-ios { font-size:10px; padding:2px 6px; border-radius:5px; font-weight:600; background:rgba(16,185,129,0.08); color:var(--primary); }
.t-check { color:var(--ios-green); font-weight:700; }

/* Compare */
.cmp-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.cmp-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow-sm);
}
.cmp-hl { box-shadow:0 4px 20px rgba(16,185,129,0.12); }
.cmp-card h3 { font-size:17px; font-weight:700; margin-bottom:10px; }
.cmp-card ul { list-style:none; padding:0; }
.cmp-card ul li { padding:4px 0; font-size:13px; color:var(--text-secondary); display:flex; align-items:center; gap:6px; }
.cmp-card ul li::before { content:''; width:4px; height:4px; border-radius:50%; background:var(--primary); flex-shrink:0; }

/* Tutorial Cards */
.tut-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.tut-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:22px; cursor:pointer; box-shadow:var(--shadow-sm); transition:var(--transition);
}
.tut-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.tut-thumb {
  height:100px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:34px; margin-bottom:14px;
}
.tut-card h3 { font-size:14px; font-weight:700; margin-bottom:6px; }
.tut-card p { font-size:12px; color:var(--text-secondary); line-height:1.55; margin-bottom:8px; }
.tut-meta { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-tertiary); }
.tut-tag { padding:2px 6px; border-radius:5px; font-weight:600; font-size:10px; }
.t-easy { background:rgba(52,199,89,0.12); color:var(--ios-green); }
.t-mid { background:rgba(255,149,0,0.12); color:var(--ios-orange); }
.t-hard { background:rgba(255,45,85,0.12); color:var(--ios-pink); }

/* Tutorial Detail */
.tut-detail { margin-bottom:44px; }
.tut-detail h3 { font-size:20px; font-weight:700; margin-bottom:18px; padding-bottom:12px; border-bottom:0.5px solid var(--separator); letter-spacing:-0.02em; }
.step-num-list { list-style:none; padding:0; }
.step-num-list li {
  padding:14px 18px 14px 44px; position:relative; margin-bottom:6px;
  background:var(--bg-card); border-radius:12px;
  font-size:13px; color:var(--text-secondary); line-height:1.6; box-shadow:var(--shadow-sm);
}
.step-num-list li::before {
  content:attr(data-step); position:absolute; left:14px; top:14px;
  width:22px; height:22px; border-radius:50%; background:var(--primary);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700;
}
.code-block {
  background:#1C1C1E; color:#E5E5E7; padding:18px 22px;
  border-radius:12px; font-family:'SF Mono','Fira Code',monospace;
  font-size:12px; line-height:1.8; overflow-x:auto; margin:12px 0;
}
.code-block .cmt { color:#8E8E93; }
.info-box {
  padding:12px 18px; border-radius:12px;
  background:rgba(16,185,129,0.06); font-size:12px; color:var(--text-secondary);
  margin:12px 0; border-left:3px solid var(--primary);
}

/* About */
.about-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.about-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:22px; text-align:center; box-shadow:var(--shadow-sm); transition:var(--transition);
}
.about-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.about-icon { font-size:28px; margin-bottom:10px; display:block; }
.about-card h4 { font-size:13px; font-weight:700; margin-bottom:4px; }
.about-card p { font-size:12px; color:var(--text-secondary); }

/* Friends Links */
.friends-wrap { padding:32px 0; }
.friends-wrap h3 { font-size:15px; font-weight:600; color:var(--text-secondary); margin-bottom:14px; text-align:center; letter-spacing:-0.01em; }
.friends-list { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.friends-list a {
  padding:7px 14px; border-radius:8px; font-size:12px; color:var(--text-secondary);
  text-decoration:none; background:var(--bg-card); box-shadow:var(--shadow-sm);
  transition:var(--transition);
}
.friends-list a:hover { color:var(--primary); box-shadow:var(--shadow); }

/* Footer */
.footer {
  background:var(--fill); padding:44px 0 20px;
  border-top:0.5px solid var(--separator);
}
.footer-inner { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:32px; margin-bottom:30px; }
.footer-brand p { font-size:12px; color:var(--text-tertiary); margin-top:6px; max-width:240px; }
.footer-links h4 { font-size:12px; font-weight:600; color:var(--text); margin-bottom:12px; text-transform:uppercase; letter-spacing:0.04em; }
.footer-links ul { list-style:none; padding:0; }
.footer-links ul li { margin-bottom:8px; }
.footer-links ul li a { font-size:13px; color:var(--text-secondary); text-decoration:none; transition:var(--transition); }
.footer-links ul li a:hover { color:var(--primary); }
.footer-bottom { border-top:0.5px solid var(--separator); padding-top:16px; text-align:center; font-size:11px; color:var(--text-quaternary); }

/* Download Modal */
.dl-modal-overlay {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,0.4);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  align-items:center; justify-content:center;
}
.dl-modal-overlay.active { display:flex; }
.dl-modal {
  background:var(--bg-card); border-radius:var(--radius-xl);
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
  padding:32px; max-width:380px; width:90%; text-align:center;
  animation:modalIn 0.3s cubic-bezier(0.25,0.1,0.25,1);
}
@keyframes modalIn { from{opacity:0;transform:scale(0.94) translateY(16px)} to{opacity:1;transform:scale(1) translateY(0)} }
.dl-modal-icon { font-size:36px; margin-bottom:12px; }
.dl-modal h3 { font-size:18px; font-weight:700; margin-bottom:6px; }
.dl-modal p { font-size:13px; color:var(--text-secondary); margin-bottom:8px; }
.dl-modal .dl-filename {
  display:inline-block; padding:5px 14px; border-radius:8px;
  background:rgba(16,185,129,0.08); color:var(--primary);
  font-size:12px; font-weight:600; margin-bottom:18px;
}
.dl-modal-actions { display:flex; gap:8px; justify-content:center; }

/* Scroll Reveal */
.reveal { opacity:0; transform:translateY(16px); transition:opacity 0.55s ease,transform 0.55s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* Responsive */
@media (max-width:1024px) {
  .feat-grid { grid-template-columns:repeat(2,1fr); }
  .detail-grid { grid-template-columns:1fr; }
  .tut-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .mobile-menu-btn { display:flex; }
  .logo { font-size:15px; }
  .navbar-nav {
    position:fixed; top:52px; left:0; right:0;
    background:var(--bg-card); flex-direction:column; padding:10px;
    transform:translateY(-120%); opacity:0; pointer-events:none;
    transition:all 0.3s ease; box-shadow:var(--shadow-lg);
  }
  .navbar-nav.active,.navbar-nav.open { transform:translateY(0); opacity:1; pointer-events:auto; }
  .navbar-nav .nav-link { width:100%; padding:11px 14px; }
  .hero h1 { font-size:30px; }
  .plat-grid { grid-template-columns:repeat(2,1fr); }
  .feat-grid { grid-template-columns:1fr; }
  .tut-grid { grid-template-columns:1fr; }
  .about-grid { grid-template-columns:1fr; }
  .cmp-grid { grid-template-columns:1fr; }
  .stats-row { gap:24px; }
  .stat-num { font-size:26px; }
  .footer-inner { flex-direction:column; }
}

/* ===== FAQ Accordion ===== */
.faq-wrap { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.faq-item {
  border-bottom: 0.5px solid var(--separator);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text);
  text-align: left; transition: background 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.faq-q:hover { background: rgba(0,0,0,0.02); }
.faq-icon {
  flex-shrink: 0; margin-left: 12px; font-size: 22px; color: var(--ios-blue);
  font-weight: 300; transition: transform 0.25s; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 20px 18px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.faq-a-inner strong { color: var(--text); }
.faq-a-inner code {
  background: var(--fill); padding: 1px 6px; border-radius: 4px;
  font-size: 12px; font-family: 'SF Mono', Consolas, monospace; color: var(--ios-blue);
}
.faq-a-inner a { color: var(--ios-blue); }

/* ===== Guide Step ===== */
.guide-block { margin-bottom: 32px; }
.guide-block-title {
  font-size: 20px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.guide-step {
  display: flex; gap: 14px; margin-bottom: 18px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.step-badge {
  flex-shrink: 0; width: 30px; height: 30px;
  background: var(--ios-blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700;
  margin-top: 1px;
}
.step-body h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.step-body code {
  background: var(--fill); padding: 1px 5px; border-radius: 4px;
  font-size: 11px; font-family: 'SF Mono', Consolas, monospace; color: var(--ios-blue);
}

/* ===== Privacy ===== */
.privacy-block { margin-bottom: 28px; background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
.privacy-block h3 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}
.privacy-block p, .privacy-block li {
  font-size: 13px; color: var(--text-secondary); line-height: 1.75;
}
.privacy-block ul { padding-left: 18px; list-style: disc; margin-top: 6px; }
.privacy-block li { margin-bottom: 6px; }
.privacy-block a { color: var(--ios-blue); }

/* ===== Info note ===== */
.note-block {
  background: var(--ios-blue); opacity: 0.08;
  border-left: 4px solid var(--ios-blue);
  padding: 12px 16px; margin: 12px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.note-block p { font-size: 13px; color: var(--text); line-height: 1.65; }
.note-block strong { font-weight: 600; }