/* ===========================
   INK WELL PAGE STYLES
   =========================== */

/* HERO */
.iw-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

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

.iw-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 16px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  background: rgba(201,169,110,0.05);
}
.iw-icon svg { width: 55px; height: 55px; }

.iw-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #c9a96e 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.iw-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.iw-platforms {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}
.platform-badge svg { width: 14px; height: 14px; }
.platform-badge.offline {
  border-color: rgba(201,169,110,0.3);
  color: var(--accent);
}
.platform-badge:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* PHONE MOCKUP */
.phone-mockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-frame {
  width: 280px;
  height: 560px;
  border: 1.5px solid rgba(201,169,110,0.3);
  border-radius: 36px;
  background: #0e0e11;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 60px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.phone-notch {
  width: 100px; height: 26px;
  background: #0a0a0c;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 0.5rem 1.2rem 1rem;
  height: calc(100% - 26px);
  display: flex;
  flex-direction: column;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1.2rem;
}
.screen-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}
.screen-save {
  font-size: 0.6rem;
  color: #4ade80;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.screen-content {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.8;
}

.script-line {
  margin-bottom: 0.5rem;
}
.script-line.slug {
  color: var(--text);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}
.script-line.action {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 300;
  line-height: 1.6;
}
.script-line.character {
  color: var(--accent);
  text-align: center;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding-left: 30%;
}
.script-line.dialogue {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.63rem;
  padding-left: 20%;
  padding-right: 10%;
  line-height: 1.6;
}

.cursor-blink {
  display: inline-block;
  width: 1.5px; height: 12px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.screen-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.55rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.phone-glow {
  width: 200px; height: 80px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.25) 0%, transparent 70%);
  margin-top: -10px;
  filter: blur(20px);
}

/* FEATURES */
.iw-features { padding: 8rem 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 3.5rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.feature-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
  position: relative;
}
.feature-card:hover { background: var(--surface); }
.feature-card.large { grid-column: span 2; }

.feature-icon {
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}
.feature-icon svg { width: 40px; height: 40px; }

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* HOW IT WORKS */
.iw-how { padding: 4rem 0 8rem; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3.5rem;
}
.step {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 0;
}
.step-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(201,169,110,0.2));
  margin-top: 2.5rem;
  flex-shrink: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .iw-hero { grid-template-columns: 1fr; text-align: center; padding: 7rem 2rem 4rem; }
  .iw-tagline { margin: 0 auto 2.5rem; }
  .iw-platforms { justify-content: center; }
  .phone-mockup { order: -1; margin-bottom: 2rem; }
  .phone-frame { width: 240px; height: 480px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.large { grid-column: span 2; }
  .steps { flex-direction: column; }
  .step-connector { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), rgba(201,169,110,0.2)); margin: 0 0 0 2rem; align-self: stretch; height: 30px; }
  .step { padding: 1.5rem 0; }
}

@media (max-width: 768px) {
  .iw-hero { padding: 6rem 1.5rem 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.large { grid-column: span 1; }
  .phone-frame { width: 220px; height: 440px; }
  .back-link { display: inline-flex; }
}
