/* ============================================
   DevOps In — Static Website for App Store
   ============================================ */

:root {
  --primary: #0078d4;
  --primary-dark: #005a9e;
  --primary-light: #e8f4fd;
  --accent: #50e6ff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8e8ea0;
  --bg-white: #ffffff;
  --bg-light: #f8f9fb;
  --bg-gradient: linear-gradient(135deg, #0f1b2d 0%, #1a2d4a 50%, #0f1b2d 100%);
  --border: #e2e5ea;
  --success: #28a745;
  --warning: #ffc107;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --container: 1100px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.lang-btn:hover { color: var(--primary); border-color: var(--border); }
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary) !important;
}
.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* --- Hero Section --- */
.hero {
  padding: 120px 0 80px;
  background: var(--bg-gradient);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,120,212,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(80,230,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero h1 i18n-key { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,120,212,0.35); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.hero-visual { flex: 1; max-width: 480px; }
.phone-mockup {
  width: 100%;
  aspect-ratio: 3/5.5;
  background: linear-gradient(145deg, #1e2d4a, #0f1b2d);
  border-radius: 32px;
  border: 3px solid rgba(255,255,255,0.12);
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  padding: 8px 16px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.phone-header {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.phone-header-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.phone-header-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.phone-content { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.phone-row {
  display: flex; gap: 10px; align-items: flex-start;
}
.phone-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--primary);
}
.phone-row-content { flex: 1; }
.phone-row-title {
  font-size: 0.75rem; font-weight: 600;
  margin-bottom: 2px;
}
.phone-row-meta { font-size: 0.65rem; color: var(--text-muted); }
.phone-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 700;
}
.phone-badge-high { background: #fee2e2; color: #dc2626; }
.phone-badge-normal { background: #e0e7ff; color: #4338ca; }
.phone-badge-done { background: #dcfce7; color: #16a34a; }
.phone-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-card-dot {
  width: 4px; height: 24px; border-radius: 2px;
  flex-shrink: 0;
}
.phone-card-dot.blue { background: var(--primary); }
.phone-card-dot.green { background: var(--success); }
.phone-card-dot.yellow { background: var(--warning); }
.phone-card-text { font-size: 0.7rem; font-weight: 500; flex: 1; }

/* --- Section --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Features Grid --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pricing-name { font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.pricing-savings { font-size: 0.8rem; color: var(--success); font-weight: 600; margin-bottom: 8px; }
.pricing-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.pricing-trial { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-bottom: 20px; }

/* --- Comparison Table --- */
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.comp-table th {
  font-weight: 700;
  background: var(--bg-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.comp-table td:first-child { font-weight: 600; }
.comp-table .check { color: var(--success); font-weight: bold; }
.comp-table .cross { color: var(--text-muted); }

/* --- FAQ --- */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-primary);
  gap: 12px;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* --- Policy & Legal Pages --- */
.policy-page { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 80px; }
.policy-page .container { max-width: 800px; }
.policy-header { margin-bottom: 40px; }
.policy-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.policy-header .meta { color: var(--text-muted); font-size: 0.9rem; }
.policy-content h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 12px; font-weight: 700; }
.policy-content h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; font-weight: 600; }
.policy-content p { margin-bottom: 12px; color: var(--text-secondary); }
.policy-content ul { margin-bottom: 12px; padding-left: 24px; list-style: disc; }
.policy-content ul li { margin-bottom: 6px; color: var(--text-secondary); }
.policy-content strong { color: var(--text-primary); }

/* --- Footer --- */
.footer {
  background: var(--bg-gradient);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-brand-icon { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-visual { max-width: 320px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
  }
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .policy-header h1 { font-size: 1.5rem; }
}
