/* ============================================
   PRAEDICTO WEBSITE - Design System
   Matching the Deep Teal Enterprise Theme
   ============================================ */

/* --- Fonts (self-hosted, DSGVO-compliant) --- */

/* Inter - latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plus Jakarta Sans - latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/plusjakartasans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Plus Jakarta Sans - latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/plusjakartasans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono - latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono - latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Design Tokens --- */
:root {
  /* Primary */
  --color-primary: #0D9488;
  --color-primary-hover: #0F766E;
  --color-primary-active: #115E59;
  --color-primary-light: #F0FDFA;
  --color-primary-fg: #FFFFFF;

  /* Accent (Mint) */
  --color-accent: #2DD4BF;
  --color-accent-hover: #5EEAD4;
  --color-accent-fg: #042F2E;

  /* Sidebar / Dark surfaces */
  --color-sidebar: #0F3D3E;
  --color-sidebar-hover: #1A5253;
  --color-sidebar-active: #245F60;
  --color-sidebar-text: #C8E6E5;
  --color-sidebar-text-muted: #7FA5A3;

  /* Backgrounds */
  --color-bg: #F8FAFB;
  --color-surface: #FFFFFF;
  --color-surface-2: #F1F5F4;
  --color-surface-3: #E6ECEB;

  /* Borders */
  --color-border: #D5DDDC;
  --color-border-strong: #B0BFBE;

  /* Text */
  --color-text: #134E4A;
  --color-text-secondary: #3D6B67;
  --color-muted: #6B8A87;
  --color-muted-2: #9BB1AE;

  /* Semantic */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #0EA5E9;

  /* Shadows (teal-tinted) */
  --shadow-sm: 0 1px 2px rgba(15, 61, 62, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 61, 62, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 61, 62, 0.1);
  --shadow-xl: 0 16px 48px rgba(15, 61, 62, 0.12);
  --shadow-glow: 0 0 20px rgba(45, 212, 191, 0.15);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;

  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  --container-wide: 1400px;
}

/* --- Base Styles --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

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

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

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-label svg {
  width: 16px;
  height: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--color-primary-fg);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: var(--color-accent-fg);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

.btn-white {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.btn-white:hover {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.35);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(248, 250, 251, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--duration-slow) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.logo svg,
.logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-sidebar);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

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

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  display: block;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--color-sidebar) 0%, #0A2E2F 50%, #071F20 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-accent) 0%, #5EEAD4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-sidebar-text);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--color-sidebar-text-muted);
  margin-top: 4px;
}

/* Hero visual (right side) */
.hero-visual {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.35;
}

.hero-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(45, 212, 191, 0.2);
  border-radius: 24px;
}

.hero-diamond:nth-child(1) {
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: rgba(45, 212, 191, 0.1);
  animation: rotate-slow 30s linear infinite;
}

.hero-diamond:nth-child(2) {
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: rgba(45, 212, 191, 0.2);
  animation: rotate-slow 25s linear infinite reverse;
}

.hero-diamond:nth-child(3) {
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: rgba(45, 212, 191, 0.35);
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(45deg); }
  to { transform: translate(-50%, -50%) rotate(405deg); }
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--duration-normal) ease;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.feature-card:hover .feature-icon {
  background: rgba(13, 148, 136, 0.15);
}

.feature-card h4 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* --- Trust / Security Section --- */
.trust-section {
  background: linear-gradient(165deg, var(--color-sidebar) 0%, #0A2E2F 100%);
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

.trust-section .section-label {
  background: rgba(45, 212, 191, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.trust-section h2 {
  color: #FFFFFF;
}

.trust-section .section-subtitle {
  color: var(--color-sidebar-text);
}

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

.trust-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: left;
  transition: all var(--duration-slow) var(--ease-out);
}

.trust-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(45, 212, 191, 0.2);
  transform: translateY(-2px);
}

.trust-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(45, 212, 191, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.trust-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.trust-card h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.trust-card p {
  font-size: 0.9375rem;
  color: var(--color-sidebar-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.trust-card p:last-child {
  margin-bottom: 0;
}

.trust-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-sidebar-text);
  line-height: 1.5;
}

.trust-card li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-primary-light);
  border-top: 1px solid rgba(13, 148, 136, 0.1);
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-sidebar);
  color: var(--color-sidebar-text);
  padding: 64px 0 32px;
}

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

.footer-brand .logo-text {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  color: var(--color-sidebar-text-muted);
  font-size: 0.875rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h5 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--color-sidebar-text-muted);
  transition: color var(--duration-fast) ease;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-sidebar-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--color-sidebar-text-muted);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(165deg, var(--color-sidebar) 0%, #0A2E2F 100%);
  padding: calc(var(--header-height) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

.page-header h1 {
  color: #FFFFFF;
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--color-sidebar-text);
  font-size: 1.15rem;
  max-width: 580px;
}

/* --- Feature Detail Sections --- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-detail.reversed {
  direction: rtl;
}

.feature-detail.reversed > * {
  direction: ltr;
}

.feature-detail-content {
  max-width: 520px;
}

.feature-detail-content .section-label {
  margin-bottom: 16px;
}

.feature-detail-content h3 {
  margin-bottom: 16px;
}

.feature-detail-content p {
  margin-bottom: 24px;
}

.feature-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.feature-detail-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-detail-visual {
  background: var(--color-surface-2);
  border-radius: var(--radius-2xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.feature-detail-visual .mockup-ui {
  width: 85%;
  height: 80%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.feature-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.mockup-dot:nth-child(1) { background: #EF4444; }
.mockup-dot:nth-child(2) { background: #F59E0B; }
.mockup-dot:nth-child(3) { background: #10B981; }

.mockup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-line {
  height: 10px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
}

.mockup-line.short { width: 40%; }
.mockup-line.medium { width: 65%; }
.mockup-line.long { width: 85%; }
.mockup-line.full { width: 100%; }
.mockup-line.accent { background: rgba(13, 148, 136, 0.15); }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.contact-info-item h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Security / Stat Cards --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all var(--duration-slow) var(--ease-out);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Animations --- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .hero h1 { font-size: 3rem; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-detail.reversed {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }

  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }

  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.05rem; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .cta-actions {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 16px;
  }

  .hero h1 { font-size: 2rem; }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .contact-form {
    padding: 24px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted-2);
}

/* --- Selection --- */
::selection {
  background: rgba(13, 148, 136, 0.15);
  color: var(--color-text);
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .hero-visual {
    display: none;
  }

  .hero {
    min-height: auto;
    background: none;
    color: #000;
  }

  .hero h1 {
    color: #000;
  }
}
