/* ===== Ittisal — Product Page Stylesheet ===== */

:root {
  --bg: #080b10;
  --bg-elevated: #0d1118;
  --surface: rgba(14, 19, 26, 0.82);
  --surface-hover: rgba(18, 24, 32, 0.92);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(201, 164, 106, 0.2);
  --text: #edf2f7;
  --text-secondary: #9da8b5;
  --text-tertiary: #6b7685;
  --accent: #c9a46a;
  --accent-muted: rgba(201, 164, 106, 0.12);
  --accent-strong: #d4b37a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.36);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --max-w: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 164, 106, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 10%, rgba(100, 140, 200, 0.06) 0%, transparent 70%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ===== Layout ===== */

.wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 40px), var(--max-w));
  margin: 0 auto;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(8, 11, 16, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: contain;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-copy {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.btn,
.language-btn,
.portfolio-trigger {
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.2;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  margin-left: auto;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Dropdowns (portfolio + language) */
.portfolio-wrap,
.language-switcher {
  position: relative;
}

.portfolio-trigger,
.language-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.portfolio-trigger:hover,
.portfolio-trigger:focus-visible,
.language-btn:hover,
.language-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Portfolio dropdown */
.portfolio-list {
  display: grid;
  gap: 2px;
}

.portfolio-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}

.portfolio-item:hover,
.portfolio-item:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

/* Language dropdown */
.language-dropdown {
  width: min(400px, 88vw);
  padding: 16px;
}

.language-dropdown-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.language-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.language-option:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.language-option.current {
  color: var(--text);
  background: var(--accent-muted);
  border-color: rgba(201, 164, 106, 0.15);
}

.language-option.pending {
  cursor: default;
  opacity: 0.7;
}

.language-option.pending:hover,
.language-option.pending:focus-visible {
  transform: none;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.language-grid::-webkit-scrollbar {
  width: 6px;
}

.language-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.language-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: #0b0f14;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 6px 24px rgba(201, 164, 106, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 32px rgba(201, 164, 106, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ===== Hero ===== */

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-muted);
  border: 1px solid rgba(201, 164, 106, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 24px;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-subline {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 48ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}

.micro-note {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Hero image card */
.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 32%);
  pointer-events: none;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ===== Features ===== */

.section {
  padding: 48px 0 56px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.section-header p {
  max-width: 50ch;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.feature-card:hover,
.feature-card:focus-within {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  border: 1px solid rgba(201, 164, 106, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== CTA Band ===== */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 16px 0 64px;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(100, 140, 200, 0.08) 0%, rgba(201, 164, 106, 0.06) 100%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.cta-band p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 44ch;
  line-height: 1.6;
}

/* ===== Footer ===== */

.site-footer {
  padding: 0 0 48px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.footer-shell a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-shell a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===== Animations ===== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.visible {
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive: Tablet ===== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding-top: 56px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Responsive: Mobile ===== */

@media (max-width: 720px) {
  .nav-shell {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    padding-top: 12px;
    gap: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown {
    left: 0;
    right: auto;
  }

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

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

  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
    max-width: none;
  }

  .brand-copy {
    display: none;
  }

  .cta-band {
    padding: 28px 24px;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== RTL Support ===== */

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }
html[dir="rtl"] .nav-shell,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .cta-row,
html[dir="rtl"] .proof-row,
html[dir="rtl"] .footer-shell,
html[dir="rtl"] .footer-links { direction: rtl; }
html[dir="rtl"] .dropdown { left: 0; right: auto; }
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .cta-band,
html[dir="rtl"] .section-header,
html[dir="rtl"] .footer-shell { direction: rtl; }
html[dir="rtl"] .hero-subline,
html[dir="rtl"] .section-header p,
html[dir="rtl"] .feature-card p,
html[dir="rtl"] .cta-band p,
html[dir="rtl"] .footer-shell p,
html[dir="rtl"] .micro-note { text-align: right; }
html[dir="rtl"] .feature-card,
html[dir="rtl"] .cta-band { text-align: right; }
html[dir="rtl"] .proof-row,
html[dir="rtl"] .cta-row { justify-content: flex-start; }
@media (max-width: 720px) {
  html[dir="rtl"] .dropdown { left: 0; right: auto; }
}
