:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --secondary: #0ea5e9;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #c7d2fe;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 12px 30px -5px rgba(79, 70, 229, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #c7d2fe;
}

.badge-success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Hero Section */
.hero {
  padding: 72px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

.hero-badge {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  max-width: 860px;
  margin: 0 auto 20px;
}

.hero h1 .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Mockup Container */
.preview-section {
  padding: 40px 0 80px;
}

.mockup-window {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

.mockup-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-url {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex: 1;
  max-width: 440px;
}

.mockup-content {
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  background: #fafafa;
}

.mockup-editor {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.mockup-editor h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.editor-text {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.highlight-err {
  text-decoration: underline wavy #ef4444;
  text-underline-offset: 4px;
  background: rgba(239, 68, 68, 0.08);
  padding: 0 2px;
  border-radius: 3px;
}

.highlight-paronym {
  text-decoration: underline wavy #f59e0b;
  text-underline-offset: 4px;
  background: rgba(245, 158, 11, 0.1);
  padding: 0 2px;
  border-radius: 3px;
}

.mockup-card-float {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.15);
}

.mockup-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.mockup-card-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.mockup-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mockup-card-actions {
  display: flex;
  gap: 8px;
}

.btn-mini {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-mini-apply {
  background: var(--primary);
  color: #ffffff;
}

.btn-mini-ignore {
  background: #f1f5f9;
  color: var(--text-muted);
}

.mockup-sidepanel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidepanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sidepanel-badge {
  font-size: 11.5px;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.sidepanel-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

.mode-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
  padding: 90px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-note {
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  padding: 16px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-muted);
}


.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.18);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.price-val {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li span.check {
  color: var(--success);
  font-weight: bold;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.faq-question {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legal & Policy Pages styling */
.policy-page {
  padding: 60px 0 100px;
}

.policy-container {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 56px;
  box-shadow: var(--shadow-sm);
}

.policy-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.policy-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.policy-meta {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.policy-container h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 36px 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.policy-container h3 {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 22px 0 8px;
}

.policy-container p, .policy-container li {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}

.policy-container ul, .policy-container ol {
  padding-left: 24px;
  margin: 12px 0;
}

.policy-container li {
  margin-bottom: 8px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.policy-table th, .policy-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.policy-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.policy-table tr:nth-child(even) td {
  background: #fafafa;
}

.code-badge {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary);
}

.callout-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 32px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 40px; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .mockup-content { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .policy-container { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; }
}
