/* DevSprint Studio - landing styles */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #102a43;
  background-color: #e6edf5;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(27, 154, 170, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 93, 4, 0.12), transparent 50%),
    linear-gradient(180deg, #e6edf5 0%, #f8fafc 45%, #e6edf5 100%);
  font-family: "Segoe UI", Calibri, "Trebuchet MS", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: #1b9aaa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e85d04;
  outline-offset: 3px;
}

.wrap {
  width: 92%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 22px 0;
}

.header-inner {
  display: table;
  width: 100%;
}

.brand {
  display: table-cell;
  vertical-align: middle;
  color: #f8fafc;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand span {
  color: #e85d04;
}

.nav {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.nav a {
  color: rgba(248, 250, 252, 0.88);
  margin-left: 22px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

.nav .nav-cta {
  display: inline-block;
  margin-left: 22px;
  padding: 10px 16px;
  background: #e85d04;
  color: #fff;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav .nav-cta:hover {
  background: #cf4f00;
  text-decoration: none;
  transform: translateY(-2px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: #102a43;
  color: #f8fafc;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
  transition: transform 8s ease-out, opacity 1s ease;
}

.hero.is-ready .hero-bg {
  transform: scale(1);
  opacity: 0.5;
}

.hero:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(105deg, rgba(16, 42, 67, 0.94) 0%, rgba(16, 42, 67, 0.78) 42%, rgba(16, 42, 67, 0.35) 100%),
    linear-gradient(0deg, rgba(16, 42, 67, 0.55), transparent 40%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 72px;
  min-height: 100vh;
  display: table;
  width: 100%;
}

.hero-copy {
  display: table-cell;
  vertical-align: middle;
  width: 58%;
  padding-right: 40px;
}

.hero-media {
  display: table-cell;
  vertical-align: middle;
  width: 42%;
}

.eyebrow {
  display: inline-block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1b9aaa;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 3.4rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero h1 .accent {
  color: #e85d04;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 1.15rem;
  color: rgba(248, 250, 252, 0.9);
}

.cta-row {
  margin: 0;
  padding: 0;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: none;
  border-radius: 4px;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: #e85d04;
  color: #fff;
  margin-right: 12px;
}

.btn-primary:hover {
  background: #cf4f00;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(248, 250, 252, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.photo-frame {
  background: #1b334d;
  border: 1px solid rgba(248, 250, 252, 0.18);
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.photo-frame img {
  width: 100%;
  height: auto;
}

.hero-copy,
.hero-media {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero.is-ready .hero-copy {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero.is-ready .hero-media {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

/* —— Sections —— */
.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 40px;
  max-width: 38em;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 2.15rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: #5a6f86;
}

.kicker {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b9aaa;
  margin-bottom: 10px;
}

/* Services as open rows */
.service-row {
  display: table;
  width: 100%;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(16, 42, 67, 0.12);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.service-row.is-in {
  opacity: 1;
  transform: translateY(0);
}

.service-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-visual {
  display: table-cell;
  vertical-align: top;
  width: 38%;
  padding-right: 36px;
}

.service-copy {
  display: table-cell;
  vertical-align: middle;
  width: 62%;
}

.service-visual .photo-frame {
  background: #d5dee8;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.service-index {
  font-family: Consolas, "Courier New", monospace;
  color: #e85d04;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.service-copy h3 {
  margin: 0 0 10px;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 1.55rem;
}

.service-copy p {
  margin: 0;
  color: #3d526a;
  max-width: 36em;
}

.service-row:hover .service-copy h3 {
  color: #1b9aaa;
}

/* Sprint Rail — signature */
.sprint {
  background: #102a43;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.sprint:before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.12);
}

.sprint .section-head p {
  color: rgba(248, 250, 252, 0.72);
}

.sprint-rail {
  position: relative;
  margin-top: 48px;
  padding-top: 8px;
}

.rail-track {
  position: relative;
  height: 4px;
  background: rgba(248, 250, 252, 0.18);
  border-radius: 2px;
  margin: 0 8% 48px;
}

.rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1b9aaa, #e85d04);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.rail-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  background: #e85d04;
  border: 3px solid #f8fafc;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.25);
  transition: left 0.15s linear;
}

.sprint-steps {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.sprint-step {
  display: table-cell;
  vertical-align: top;
  padding: 0 14px;
  text-align: center;
}

.sprint-step .step-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  color: #1b9aaa;
  margin-bottom: 8px;
}

.sprint-step h3 {
  margin: 0 0 8px;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
}

.sprint-step p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.7);
}

.studio-band {
  margin-top: 56px;
}

.studio-band .photo-frame {
  background: #1b334d;
  border: none;
  padding: 0;
}

.studio-caption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.65);
}

/* Testimonials */
.quotes {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
}

.quote {
  display: table-cell;
  vertical-align: top;
  width: 33.33%;
  padding-right: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quote.is-in {
  opacity: 1;
  transform: translateY(0);
}

.quote:last-child {
  padding-right: 0;
}

.quote blockquote {
  margin: 0 0 16px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #102a43;
}

.quote cite {
  display: block;
  font-style: normal;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
}

.quote .meta {
  color: #5a6f86;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Contact */
.contact {
  background:
    linear-gradient(135deg, rgba(27, 154, 170, 0.08), transparent 40%),
    #f8fafc;
  border-top: 1px solid rgba(16, 42, 67, 0.08);
}

.contact-grid {
  display: table;
  width: 100%;
}

.contact-info {
  display: table-cell;
  vertical-align: top;
  width: 38%;
  padding-right: 40px;
}

.contact-form-wrap {
  display: table-cell;
  vertical-align: top;
  width: 62%;
}

.contact-info dl {
  margin: 24px 0 0;
}

.contact-info dt {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1b9aaa;
  margin-top: 16px;
}

.contact-info dd {
  margin: 4px 0 0;
}

.form-card {
  background: #fff;
  border: 1px solid rgba(16, 42, 67, 0.1);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(16, 42, 67, 0.06);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: #102a43;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field .error {
  display: none;
  margin-top: 6px;
  color: #c03221;
  font-size: 0.88rem;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #c03221;
}

.field.has-error .error {
  display: block;
}

.form-actions {
  margin-top: 8px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #5a6f86;
}

.success-ticket {
  display: none;
  background: #102a43;
  color: #f8fafc;
  padding: 28px;
}

.success-ticket.is-visible {
  display: block;
}

.form-card.is-sent .lead-form {
  display: none;
}

.success-ticket .ticket-label {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b9aaa;
  margin-bottom: 10px;
}

.success-ticket h3 {
  margin: 0 0 12px;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
}

.success-ticket p {
  margin: 0 0 10px;
  color: rgba(248, 250, 252, 0.85);
}

/* Footer */
.site-footer {
  background: #0b1c2e;
  color: rgba(248, 250, 252, 0.7);
  padding: 36px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: table;
  width: 100%;
}

.footer-brand {
  display: table-cell;
  vertical-align: middle;
  color: #f8fafc;
  font-family: Bahnschrift, "Segoe UI Semibold", "Trebuchet MS", sans-serif;
}

.footer-meta {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.footer-meta a {
  color: rgba(248, 250, 252, 0.85);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-media,
  .service-row,
  .quote,
  .hero-bg,
  .btn,
  .nav .nav-cta,
  .rail-progress,
  .rail-marker {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero.is-ready .hero-bg {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .nav .nav-link {
    display: none;
  }

  .hero-inner,
  .hero-copy,
  .hero-media,
  .service-row,
  .service-visual,
  .service-copy,
  .contact-grid,
  .contact-info,
  .contact-form-wrap,
  .quotes,
  .quote,
  .sprint-steps,
  .sprint-step,
  .footer-inner,
  .footer-brand,
  .footer-meta {
    display: block;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-copy {
    padding-right: 0;
    padding-bottom: 28px;
  }

  .hero-inner {
    padding-top: 100px;
    min-height: 0;
  }

  .hero {
    min-height: 0;
  }

  .service-visual {
    padding-right: 0;
    margin-bottom: 16px;
  }

  .quote {
    padding-right: 0;
    margin-bottom: 28px;
  }

  .sprint-step {
    text-align: left;
    padding: 0 0 22px;
    border-left: 2px solid rgba(248, 250, 252, 0.18);
    padding-left: 16px;
    margin-left: 8px;
  }

  .rail-track {
    display: none;
  }

  .contact-info {
    padding-right: 0;
    margin-bottom: 32px;
  }

  .footer-meta {
    text-align: left;
    margin-top: 12px;
  }

  .section {
    padding: 64px 0;
  }
}
