/* RTSoftLabs — boutique studio site
   Hand-written, framework-free, fast.
   Type: Fraunces (display serif) + Inter (body).
   ------------------------------------------------------------------ */

:root {
   --ink:        #1a2230;   /* headings, near-black navy */
   --text:       #333d4b;   /* body copy */
   --muted:      #6a7583;   /* secondary text */
   --bg:         #ffffff;
   --bg-alt:     #f7f5f0;   /* warm off-white sections */
   --bg-ink:     #14202e;   /* dark sections */
   --line:       #e7e3d9;   /* hairlines */
   --line-soft:  #eeece5;
   --brand:      #143a5a;   /* deep blue */
   --accent:     #2f80b3;   /* medium blue, used sparingly */
   --accent-ink: #1c5c86;

   --maxw: 1140px;
   --radius: 14px;
   --radius-sm: 9px;
   --shadow: 0 1px 2px rgba(20,32,46,.05), 0 14px 40px -22px rgba(20,32,46,.35);

   --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
   --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
   font-family: var(--sans);
   color: var(--text);
   background: var(--bg);
   line-height: 1.65;
   font-size: 17px;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
   font-family: var(--serif);
   color: var(--ink);
   line-height: 1.12;
   font-weight: 500;
   letter-spacing: -0.01em;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
   position: absolute; left: -9999px; top: 0;
   background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
   position: sticky; top: 0; z-index: 40;
   background: rgba(255,255,255,.86);
   backdrop-filter: saturate(140%) blur(10px);
   border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--brand); flex: none; }
.brand-word { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active:not(.nav-cta) { position: relative; }
.site-nav a.is-active:not(.nav-cta)::after {
   content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta {
   background: var(--ink); color: #fff !important; padding: 9px 16px; border-radius: 999px; font-weight: 500;
}
.nav-cta:hover { background: var(--brand); }
.nav-cta.is-active::after { display: none; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
   display: inline-flex; align-items: center; gap: 9px;
   font-family: var(--sans); font-size: 15px; font-weight: 500;
   padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
   transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--brand); }
.btn .arw { transition: transform .15s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-ink { background: var(--bg-ink); color: #cdd6df; }
.section-ink h2, .section-ink h3 { color: #fff; }

.eyebrow {
   font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
   color: var(--accent); margin-bottom: 16px;
}
.section-ink .eyebrow { color: #7fb6dc; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-ink .section-head p { color: #9fb0bf; }

.lead { font-size: 20px; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
   background:
      radial-gradient(1100px 520px at 82% -10%, #eef4f9 0%, rgba(238,244,249,0) 60%),
      linear-gradient(180deg, var(--bg-alt) 0%, #fbfaf6 100%);
   border-bottom: 1px solid var(--line-soft);
   padding: clamp(70px, 11vw, 128px) 0 clamp(64px, 9vw, 104px);
}
.hero-inner { max-width: 860px; }
.hero .tagline {
   display: inline-flex; align-items: center; gap: 9px;
   font-size: 13.5px; font-weight: 500; color: var(--brand);
   background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; margin-bottom: 26px;
}
.hero .tagline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero h1 {
   font-size: clamp(38px, 6.4vw, 66px);
   letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p.lead { margin-top: 26px; max-width: 620px; font-size: clamp(18px, 2.2vw, 21px); color: #45505e; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-meta div { min-width: 140px; }
.hero-meta .n { font-family: var(--serif); font-size: 30px; color: var(--ink); font-weight: 500; }
.hero-meta .l { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
   background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
   padding: 30px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dbd6c9; }
.card .card-icon {
   width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
   background: #eaf2f8; color: var(--brand); margin-bottom: 20px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* numbered process */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step .num {
   counter-increment: step; flex: none;
   font-family: var(--serif); font-size: 18px; color: var(--brand);
   width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
   display: grid; place-items: center; background: #fff;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Feature / product ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.feature .kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.feature h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 14px 0 16px; }
.feature p { color: var(--muted); margin-bottom: 14px; }
.feature .feature-actions { margin-top: 24px; }

.product-visual {
   border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
   background: linear-gradient(150deg, #14202e 0%, #1d3a52 55%, #2f80b3 130%);
   color: #fff; padding: 40px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between;
   box-shadow: var(--shadow);
}
.product-visual .pv-top { display: flex; justify-content: space-between; align-items: center; opacity: .85; font-size: 13px; letter-spacing: .04em; }
.product-visual .pv-title { font-family: var(--serif); font-size: 34px; margin-top: 24px; }
.product-visual .pv-sub { color: #bcd4e6; margin-top: 8px; font-size: 15px; }
.product-visual .pv-route { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.product-visual .pv-hop { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 12px; }
.product-visual .pv-arrow { opacity: .6; }
.product-visual .pv-price { margin-top: 22px; font-size: 14px; color: #bcd4e6; }
.product-visual .pv-price b { color: #fff; font-size: 22px; font-family: var(--serif); font-weight: 500; }

/* ---------- Work list ---------- */
.work-item {
   display: grid; grid-template-columns: 200px 1fr; gap: 32px;
   padding: 34px 0; border-top: 1px solid var(--line);
}
.work-item:first-of-type { border-top: none; }
.work-item .work-meta .yr { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.work-item .work-meta .tag { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.work-item h3 { font-size: 24px; margin-bottom: 8px; }
.work-item h3 a { color: var(--ink); }
.work-item h3 a:hover { color: var(--brand); }
.work-item p { color: var(--muted); }
.work-item .stack { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.work-item .stack span { font-size: 12.5px; color: var(--accent-ink); background: #eaf2f8; border-radius: 6px; padding: 4px 10px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #1a7a4f; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #1fb073; }

/* ---------- Audiences ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud .card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 44px); max-width: 720px; margin: 0 auto 18px; }
.cta-band p { color: #9fb0bf; max-width: 560px; margin: 0 auto 30px; font-size: 18px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- About / founder ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.founder-card {
   position: sticky; top: 100px;
   background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center;
}
.founder-avatar {
   width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px;
   background: linear-gradient(150deg, #1d3a52, #2f80b3); color: #fff;
   display: grid; place-items: center; font-family: var(--serif); font-size: 34px;
}
.founder-card .name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.founder-card .role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.founder-card .founder-links { margin-top: 20px; display: grid; gap: 8px; }
.prose { max-width: 640px; }
.prose h2 { font-size: 26px; margin: 34px 0 12px; }
.prose p { margin-bottom: 18px; }
.prose p:first-of-type { font-size: 20px; color: var(--text); }
.pull { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 26px 0; font-family: var(--serif); font-size: 21px; color: var(--ink); font-style: italic; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 6vw, 64px); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -0.025em; max-width: 780px; }
.page-hero p { margin-top: 20px; max-width: 620px; color: var(--muted); font-size: 19px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
   width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
   background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
   transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
   outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,128,179,.14);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-aside { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-aside h3 { font-size: 19px; margin-bottom: 12px; }
.contact-aside p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.contact-aside a { font-weight: 500; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 26px; font-size: 15px; }
.alert-ok { background: #e8f6ee; border: 1px solid #bfe6cf; color: #16653f; }
.alert-err { background: #fdecec; border: 1px solid #f3c9c9; color: #9a2b2b; }

/* ---------- Notes / blog ---------- */
.notes-empty { text-align: center; max-width: 560px; margin: 0 auto; }
.notes-empty .icon { font-size: 40px; }
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; text-align: left; }
.topic { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: #fff; }
.topic h3 { font-size: 17px; margin-bottom: 4px; }
.topic p { font-size: 14.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: #9fb0bf; padding: 64px 0 30px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #7fb6dc; }
.site-footer .brand-accent { color: #7fb6dc; }
.footer-tag { margin-top: 14px; max-width: 300px; font-size: 15px; color: #8798a7; }
.footer-nav h3, .footer-contact h3 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer-nav a { display: block; color: #9fb0bf; font-size: 15px; margin-bottom: 9px; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: 15px; margin-bottom: 9px; }
.footer-contact a { color: #cdd6df; }
.footer-invite { color: #7fb6dc !important; font-weight: 500; }
.footer-legal { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.09); margin-top: 44px; padding-top: 22px; }
.footer-legal p { font-size: 13.5px; color: #6f8090; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
   .grid-3, .aud { grid-template-columns: 1fr 1fr; }
   .feature { grid-template-columns: 1fr; gap: 34px; }
   .founder { grid-template-columns: 1fr; gap: 30px; }
   .founder-card { position: static; max-width: 420px; }
   .contact-grid { grid-template-columns: 1fr; }
   .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
   section { padding: 60px 0; }
   .nav-toggle {
      display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
      width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
   }
   .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
   body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
   body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
   body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
   .site-nav {
      position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
      background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
      transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
   }
   body.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
   .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
   .site-nav a.is-active:not(.nav-cta)::after { display: none; }
   .nav-cta { text-align: center; margin-top: 12px; border-bottom: none !important; }

   .grid-3, .grid-2, .aud, .topic-list { grid-template-columns: 1fr; }
   .work-item { grid-template-columns: 1fr; gap: 12px; }
   .footer-inner { grid-template-columns: 1fr; gap: 30px; }
   .footer-legal { flex-direction: column; gap: 8px; }
   .hero-meta { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
   * { scroll-behavior: auto; transition: none !important; }
}
