/* ─────────────────────────────────────────────────────────
   home.css — Styles for index.html only
───────────────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hero-bg-img {
    object-fit: cover;
    object-position: 50% 50%;
    width: 100%;
    height: 100%;
  }
}

/* Dark overlay for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--padding-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* VOTUM — full spectrum hue wave, max saturation, no white */
.hero-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  justify-content: center;
}

.hero-title .letter {
  display: inline-block;
  animation: hueWave 8s linear infinite;
}

.hero-title .letter:nth-child(1) { animation-delay: 0s; }
.hero-title .letter:nth-child(2) { animation-delay: -6.4s; }
.hero-title .letter:nth-child(3) { animation-delay: -4.8s; }
.hero-title .letter:nth-child(4) { animation-delay: -3.2s; }
.hero-title .letter:nth-child(5) { animation-delay: -1.6s; }

@keyframes hueWave {
  0%   { color: hsl(0,   100%, 50%); }
  14%  { color: hsl(51,  100%, 50%); }
  28%  { color: hsl(120, 100%, 50%); }
  42%  { color: hsl(180, 100%, 50%); }
  57%  { color: hsl(240, 100%, 50%); }
  71%  { color: hsl(300, 100%, 50%); }
  85%  { color: hsl(330, 100%, 50%); }
  100% { color: hsl(360, 100%, 50%); }
}

/* Hero subline */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.3;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-hint span {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-hint svg { width: 14px; height: 14px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Intro section ───────────────────────────────────── */
.intro-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-wrap .heading-xl {
  max-width: 560px;
}

.intro-wrap .body-text {
  max-width: 420px;
}

/* ── Work section ────────────────────────────────────── */
.work-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--grey-800);
  border: var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
  margin-bottom: var(--space-md);
}

.work-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.work-card-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  position: relative;
}

.work-preview-iframe {
  border: none;
  display: block;
  pointer-events: none;
  transform: scale(0.75);
  transform-origin: top left;
  width: 133.33%;
  height: 133.33%;
}

.work-iframe-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.work-card-info {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.work-card-meta h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 6px;
}

.work-card-meta p {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 300;
  color: var(--grey-400);
  letter-spacing: 0.03em;
}

/* Demo tag — white */
.work-demo-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 2px;
}

.work-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.work-card:hover .work-card-link { color: var(--white); }

.work-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.work-card:hover .work-card-link svg { transform: translate(3px, -3px); }

.work-demo-note {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey-400);
}

/* ── Plans section ───────────────────────────────────── */
.plans-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  max-width: 960px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  border-radius: 8px;
  padding: 48px 40px;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background: linear-gradient(145deg, #1e1e1e 0%, #161616 40%, #111111 60%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 1px 1px 0px rgba(255, 255, 255, 0.07),
    inset -1px -1px 0px rgba(0, 0, 0, 0.6),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 1px 1px 0px rgba(255, 255, 255, 0.1),
    inset -1px -1px 0px rgba(0, 0, 0, 0.6),
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.plan-featured {
  background: linear-gradient(145deg, #222222 0%, #1a1a1a 40%, #151515 60%, #101010 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.plan-featured::before {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.plan-featured .plan-badge {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}

.plan-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--grey-400);
  margin-bottom: var(--space-md);
  min-height: 68px;
}

.plan-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-md);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-200);
}

.plan-features li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--grey-200);
  background: rgba(255, 255, 255, 0.04);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.plan-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.plan-cta-featured {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.plan-cta-featured:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* ── Contact section ─────────────────────────────────── */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-header {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--grey-800);
  border: var(--border-subtle);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  transition: border-color var(--transition-base);
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-400);
  opacity: 0.6;
}

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

.form-group select option {
  background: var(--grey-800);
  color: var(--white);
}

.form-submit {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 3px;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-base);
  margin-top: 8px;
}

.form-submit:hover { opacity: 0.85; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .plans-grid { max-width: 100%; }
}

@media (max-width: 768px) {
  .intro-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .work-card-info { flex-direction: column; align-items: flex-start; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 36px 28px; }
  .plan-desc { min-height: auto; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 72px; }
  .plan-card { padding: 28px 20px; }
}