@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'CourierPrime';
  src: url('CourierPrime-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'CourierPrime';
  src: url('CourierPrime-Bold.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --bg: #0c0e12;
  --bg-subtle: #13171f;
  --bg-card: #171b26;
  --bg-card-hover: #1c2130;
  
  --fg: #f4f5f8;
  --fg-dim: #9aa1b2;
  --fg-muted: #636b80;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  
  --accent-actone: #a78bfa;
  --accent-actone-dim: rgba(167, 139, 250, 0.12);
  --accent-actone-glow: rgba(167, 139, 250, 0.25);
  
  --accent-fount: #34d399;
  --accent-fount-dim: rgba(52, 211, 153, 0.12);
  --accent-fount-glow: rgba(52, 211, 153, 0.25);

  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier Prime', 'CourierPrime', monospace;

  --max-w: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

/* Subtle Ambient Glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 15%, rgba(45, 55, 80, 0.25) 0%, transparent 65%);
}

/* Studio Header */
.iyal-header {
  position: relative;
  z-index: 10;
  height: 72px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.iyal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.iyal-brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav-link {
  color: var(--fg-dim);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.header-nav-link:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}

.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.header-nav-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Main Landing Container */
.landing-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  box-sizing: border-box;
}

.landing-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.landing-title {
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 820px;
  word-break: break-word;
}

.landing-title em {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  color: var(--accent-actone);
  letter-spacing: -0.02em;
}

.landing-lede {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 52px;
  word-break: break-word;
}

/* Two Flagship Product Cards */
.landing-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  margin: 0 auto 72px;
  box-sizing: border-box;
}

.product-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  box-sizing: border-box;
}

.product-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.product-action-card.card-actone:hover {
  border-color: var(--accent-actone);
}

.product-action-card.card-fount:hover {
  border-color: var(--accent-fount);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.card-badge-actone {
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.card-badge-fount {
  background: rgba(5, 150, 105, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.94rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.card-actone .card-btn {
  background: #7c3aed;
  color: #ffffff;
  border: 1px solid #8b5cf6;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.card-actone:hover .card-btn {
  background: #8b5cf6;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.card-fount .card-btn {
  background: #059669;
  color: #ffffff;
  border: 1px solid #10b981;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.card-fount:hover .card-btn {
  background: #10b981;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Studio Principles Section */
.principles-section {
  width: 100%;
  text-align: left;
  margin-bottom: 40px;
}

.principles-header {
  text-align: center;
  margin-bottom: 32px;
}

.principles-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.principles-subtitle {
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.principle-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-actone);
  margin-bottom: 12px;
}

.principle-heading {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 8px;
}

.principle-text {
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

/* Footer */
.iyal-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--fg-muted);
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--fg-dim);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 860px) {
  .landing-products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 48px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .iyal-header {
    padding: 0 16px;
    height: 62px;
  }
  .header-nav-link {
    display: none;
  }
  .landing-main {
    padding: 40px 16px 60px;
  }
  .landing-title {
    font-size: clamp(2.2rem, 8.5vw, 3.4rem);
    margin-bottom: 16px;
  }
  .landing-lede {
    font-size: 0.98rem;
    margin-bottom: 36px;
  }
  .product-action-card {
    padding: 28px 22px;
  }
  .card-title {
    font-size: 1.45rem;
  }
  .card-description {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .iyal-footer {
    flex-direction: column;
    gap: 14px;
    padding: 24px 16px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
