/* ========================================
   Ivashchenko LLC — Design System
   ======================================== */

/* --- Custom Properties --- */
:root {
  --bg-primary: #07070e;
  --bg-secondary: #0c0c18;
  --bg-card: rgba(15, 15, 30, 0.6);
  --bg-card-hover: rgba(22, 22, 44, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(124, 91, 245, 0.3);
  --text-primary: #ededf4;
  --text-secondary: #8e8ea0;
  --text-muted: #55556a;
  --accent: #7c5bf5;
  --accent-hover: #6a47e0;
  --accent-light: rgba(124, 91, 245, 0.08);
  --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-family); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 16px;
}
.section__label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
}
.section__title { font-size: 2.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.section__subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; line-height: 1.7; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full); font-size: 0.95rem;
  font-weight: 500; transition: all var(--transition-base); white-space: nowrap;
}
.btn--primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35); }
.btn--secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height); display: flex; align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.header--scrolled {
  background: rgba(7, 7, 14, 0.85); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header__logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.header__logo-mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition-fast);
}
.header__nav a:hover { color: var(--text-primary); }
.header__menu-btn { display: none; width: 32px; height: 32px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.header__menu-btn span { width: 20px; height: 1.5px; background: var(--text-primary); transition: all var(--transition-base); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--header-height); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.hero__orb {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 91, 245, 0.12), rgba(99, 102, 241, 0.04) 50%, transparent 70%);
  top: 50%; left: 60%; transform: translate(-50%, -50%);
  filter: blur(60px); animation: orbFloat 25s ease-in-out infinite; pointer-events: none;
}
.hero__orb--secondary {
  width: 400px; height: 400px; left: 20%; top: 30%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
  animation-delay: -10s; animation-duration: 20s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-45%, -55%) scale(1.08); }
  66% { transform: translate(-55%, -45%) scale(0.95); }
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: var(--accent-light); border: 1px solid var(--border-accent);
  border-radius: var(--radius-full); font-size: 0.8rem; color: var(--accent);
  font-weight: 500; margin-bottom: 32px;
}
.hero__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero__title { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero__title span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__description { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; max-width: 520px; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Services --- */
.services { background: var(--bg-secondary); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.service-card {
  background: var(--bg-card); backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 36px; transition: all var(--transition-base); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-gradient); opacity: 0; transition: opacity var(--transition-base);
}
.service-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.25); }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--accent-light); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.service-card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.service-card__desc { font-size: 0.925rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.service-card__features { display: flex; flex-direction: column; gap: 8px; }
.service-card__features li { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.service-card__features li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* --- Pricing --- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
  transition: all var(--transition-base); position: relative;
}
.pricing-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.pricing-card--featured {
  border-color: var(--accent); background: rgba(124, 91, 245, 0.04);
  box-shadow: 0 0 40px rgba(124, 91, 245, 0.08);
}
.pricing-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-gradient); color: #fff; padding: 4px 20px;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card__name { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.pricing-card__price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-card__price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-card__desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-card__divider { height: 1px; background: var(--border-subtle); margin-bottom: 28px; }
.pricing-card__features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; text-align: left; }
.pricing-card__features li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.pricing-card__features li svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

/* --- Contact --- */
.contact { background: var(--bg-secondary); }
.contact__wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.contact__info-list { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.contact__info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact__info-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--accent-light); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
}
.contact__info-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact__info-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact__info-value { font-size: 0.95rem; color: var(--text-primary); }
.contact__info-value a { transition: color var(--transition-fast); }
.contact__info-value a:hover { color: var(--accent); }
.contact__cta-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 48px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.contact__cta-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.contact__cta-card p { color: var(--text-secondary); margin-bottom: 32px; max-width: 360px; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border-subtle); padding: 48px 0; }
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--accent); }

/* --- Scroll Animations --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- Legal Pages --- */
.legal { padding: calc(var(--header-height) + 80px) 0 80px; }
.legal__content { max-width: 720px; margin: 0 auto; }
.legal__content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.legal__content .legal__updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 48px; }
.legal__content h2 { font-size: 1.2rem; font-weight: 600; margin-top: 40px; margin-bottom: 12px; }
.legal__content p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.legal__content ul { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.legal__content li { color: var(--text-secondary); margin-bottom: 8px; font-size: 0.95rem; line-height: 1.7; }
.legal__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* --- Responsive: Tablet --- */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .contact__wrapper { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .hero__title { font-size: 2.5rem; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
  .header__nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(7,7,14,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 28px; backdrop-filter: blur(16px); }
  .header__nav.open { display: flex; }
  .header__nav a { font-size: 1.2rem; }
  .header__menu-btn { display: flex; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .section__title { font-size: 1.75rem; }
  .section { padding: 64px 0; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
  .contact__cta-card { padding: 32px 24px; }
}
