/* ═══════════════════════════════════════════════════════════
   Orencar Design System v0.1
   Foundation tokens + components — reused by the future SaaS.
   Source design language: orencar_step1/2.html (blue system,
   green actions, orange as accent only).
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root{
  /* color */
  --color-primary:#1048AD;
  --color-primary-deep:#082B4C;
  --color-primary-mid:#0C3A85;
  --color-accent:#FF980B;
  --color-action:#3D9222;
  --color-action-hover:#2e7019;
  --color-bg:#FFFFFF;
  --color-surface:#F9FAFB;
  --color-surface-2:#F3F6FB;
  --color-text:#111827;
  --color-text-body:#374151;
  --color-text-muted:#6B7280;
  --color-text-inverse:#FFFFFF;
  --color-border:#E5E7EB;
  --color-border-strong:#D1D5DB;
  --color-focus:#1273C4;
  --color-danger:#B91C1C;
  --color-danger-border:#D7232E;
  --color-disabled-bg:#E5E7EB;
  --color-disabled-text:#9CA3AF;
  --color-icon:#005781;
  --color-icon-bg:#E0EAF5;
  --accent-tint:rgba(255,152,11,.07);

  /* typography */
  --font:'Barlow','Segoe UI',system-ui,sans-serif;
  --text-display:clamp(34px,4.8vw,52px);
  --text-heading:clamp(24px,3vw,32px);
  --text-subheading:18px;
  --text-body:16px;
  --text-caption:13px;

  /* shape */
  --radius-btn:6px;
  --radius-input:8px;
  --radius-card:12px;
  --radius-pill:35px;

  /* elevation */
  --shadow-1:0 1px 4px rgb(0 0 0 / .06);
  --shadow-2:0 8px 24px rgb(8 43 76 / .10);

  /* spacing */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:56px; --space-9:64px;

  /* motion */
  --ease:cubic-bezier(.22,.7,.3,1);
  --dur-fast:.15s;
  --dur-med:.5s;
}

/* Dark theme tokens — prepared for the SaaS, inactive on this page. */
[data-theme="dark"]{
  --color-primary:#4D82E0;
  --color-primary-deep:#0A1A2E;
  --color-primary-mid:#12315C;
  --color-accent:#FFA733;
  --color-action:#4CAF2E;
  --color-action-hover:#3D9222;
  --color-bg:#0D1520;
  --color-surface:#16202E;
  --color-surface-2:#1C2838;
  --color-text:#F2F5F9;
  --color-text-body:#C4CEDA;
  --color-text-muted:#8A96A6;
  --color-border:#2A3648;
  --color-border-strong:#3A4A60;
  --color-focus:#4D9FE8;
  --color-danger:#F87171;
  --color-disabled-bg:#2A3648;
  --color-disabled-text:#5C6B7E;
  --color-icon:#8FC3E8;
  --color-icon-bg:#12315C;
}

/* ── 2. Base ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);font-size:var(--text-body);line-height:1.6;
  color:var(--color-text-body);background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
input,textarea{font:inherit;color:var(--color-text)}

.page-inner{max-width:1140px;margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}

:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px;border-radius:4px}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--color-primary-deep);color:#fff;padding:10px 18px}
.skip-link:focus{left:0}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── 3. Typography components ──────────────────────────────── */
h1{font-size:var(--text-display);font-weight:700;line-height:1.1;letter-spacing:-.02em;color:var(--color-text-inverse)}
h2{font-size:var(--text-heading);font-weight:700;line-height:1.18;letter-spacing:-.015em;color:var(--color-text);margin-bottom:var(--space-3)}
h3{font-size:var(--text-subheading);font-weight:600;line-height:1.35;letter-spacing:-.01em;color:var(--color-text)}
.eyebrow{display:block;font-size:var(--text-caption);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--color-primary);margin-bottom:var(--space-2)}

/* ── 4. Buttons ────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:none;border-radius:var(--radius-pill);font-weight:600;letter-spacing:.01em;
  white-space:nowrap;transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast);
}
.btn:disabled{background:var(--color-disabled-bg);color:var(--color-disabled-text);cursor:not-allowed}
.btn-action{background:var(--color-action);color:#fff;height:50px;padding:0 40px;font-size:17px}
.btn-action:hover{background:var(--color-action-hover)}
.btn-action:active{transform:translateY(1px)}
.btn-outline-light{background:transparent;color:#fff;border:1.5px solid #fff;height:50px;padding:0 30px;font-size:16px}
.btn-outline-light:hover{background:rgba(255,255,255,.12)}
.btn-hdr{background:transparent;color:#fff;border:1.5px solid #fff;height:40px;padding:0 18px;border-radius:var(--radius-btn);font-size:14px}
.btn-hdr:hover{background:rgba(255,255,255,.12)}

/* ── 5. Header ─────────────────────────────────────────────── */
.site-header{background:var(--color-primary);height:70px;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%}
.header-nav{display:flex;align-items:center;gap:22px}
.header-nav a{color:#fff;font-size:15px;font-weight:500;opacity:.92;transition:opacity var(--dur-fast)}
.header-nav a:hover{opacity:1}

/* ── 6. Hero + ambient motion ──────────────────────────────── */
.hero{
  position:relative;overflow:hidden;text-align:center;
  background:linear-gradient(165deg,var(--color-primary) 0%,var(--color-primary-mid) 55%,var(--color-primary-deep) 100%);
  padding:60px 0 68px;
}
.hero-bg{position:absolute;inset:0;pointer-events:none}
.glow{position:absolute;border-radius:50%;filter:blur(80px);opacity:.5;will-change:transform}
.glow-a{width:520px;height:520px;left:-150px;top:-180px;background:radial-gradient(circle,rgba(18,115,196,.55),transparent 65%);animation:drift-a 30s var(--ease) infinite alternate}
.glow-b{width:460px;height:460px;right:-130px;bottom:-200px;background:radial-gradient(circle,rgba(255,152,11,.20),transparent 65%);animation:drift-b 36s var(--ease) infinite alternate}
@keyframes drift-a{to{transform:translate(70px,50px) scale(1.1)}}
@keyframes drift-b{to{transform:translate(-60px,-60px) scale(1.12)}}
.dotgrid{
  position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.14) 1px,transparent 1px);
  background-size:30px 30px;
  mask-image:radial-gradient(ellipse 65% 65% at 50% 40%,#000 25%,transparent 72%);
  -webkit-mask-image:radial-gradient(ellipse 65% 65% at 50% 40%,#000 25%,transparent 72%);
}
/* floating particles */
.particle{
  position:absolute;border-radius:50%;
  background:rgba(255,255,255,.5);
  animation:float var(--pd,18s) ease-in-out var(--pdel,0s) infinite alternate;
  will-change:transform;
}
.particle.amber{background:rgba(255,152,11,.55)}
@keyframes float{
  from{transform:translateY(0) translateX(0)}
  to{transform:translateY(-34px) translateX(var(--px,8px))}
}
/* connection lines */
.lines{position:absolute;inset:0;width:100%;height:100%;opacity:.35}
.line-path{
  fill:none;stroke:rgba(255,255,255,.35);stroke-width:1;
  stroke-dasharray:6 10;
  animation:dashmove var(--ld,14s) linear infinite;
}
@keyframes dashmove{to{stroke-dashoffset:-320}}

.hero-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}
.hero-logo{margin-bottom:20px}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:#fff;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.28);
  border-radius:var(--radius-pill);padding:7px 16px;margin-bottom:20px;
}
.pulse-dot{width:7px;height:7px;border-radius:50%;background:var(--color-accent);animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,152,11,.5)}50%{box-shadow:0 0 0 6px rgba(255,152,11,0)}}
.hero-sub{max-width:560px;font-size:clamp(16px,1.3vw,18.5px);color:rgba(255,255,255,.85);margin:14px auto 28px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}

/* ── 7. Sections ───────────────────────────────────────────── */
.statement{padding:var(--space-8) 0;background:var(--color-bg)}
.statement-text{
  max-width:720px;margin-inline:auto;text-align:center;font-weight:500;
  font-size:clamp(19px,2.1vw,24px);line-height:1.5;color:var(--color-text-muted);
}
.statement-text strong{color:var(--color-text);font-weight:600}

.principles{padding:var(--space-7) 0 var(--space-8);background:var(--color-surface);text-align:center}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:var(--space-6);text-align:left}
.card{
  background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-card);
  padding:26px 24px;box-shadow:var(--shadow-1);
  transition:box-shadow .2s,transform .2s;
}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-2)}
.card-icon{
  width:46px;height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background:var(--color-icon-bg);color:var(--color-icon);margin-bottom:var(--space-4);
}
.card p{margin-top:var(--space-2);color:var(--color-text-muted);font-size:15px}

.invite{padding:var(--space-8) 0;background:var(--color-bg)}
.invite-card{
  background:var(--accent-tint);border:1px solid var(--color-accent);border-radius:var(--radius-card);
  padding:clamp(26px,4vw,40px);display:flex;align-items:center;justify-content:space-between;gap:28px;
}
.invite-card h2{margin-bottom:6px}
.invite-card p{color:var(--color-text-body);max-width:540px}

/* ── 8. Contact form (KMG-style) ───────────────────────────── */
.contact{padding:var(--space-8) 0 var(--space-9);background:var(--color-surface-2)}
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(32px,5vw,72px);align-items:start}
.contact-intro h2{font-size:clamp(28px,3.4vw,38px);color:var(--color-primary-deep)}
.contact-intro .lead{margin-top:10px;color:var(--color-text-body);font-size:17px}

.contact-form{display:flex;flex-direction:column;gap:14px}
.input{
  width:100%;background:var(--color-bg);border:1px solid var(--color-border-strong);
  border-radius:var(--radius-input);padding:14px 16px;
  transition:border-color var(--dur-fast),box-shadow var(--dur-fast);
}
.input::placeholder{color:#8896A8;opacity:1}
.input:focus{outline:none;border-color:var(--color-focus);box-shadow:0 0 0 3px rgba(18,115,196,.15)}
.input:disabled{background:var(--color-disabled-bg);color:var(--color-disabled-text)}
textarea.input{resize:vertical;min-height:130px}
.input.invalid{border-color:var(--color-danger-border)}

.field-error{font-size:13px;color:var(--color-danger);font-weight:500;margin:-8px 0 0 2px}
.field-error:empty{display:none}

.checks{display:flex;flex-direction:column;gap:9px;margin-top:2px}
.check{display:flex;align-items:flex-start;gap:9px;font-size:14px;color:var(--color-text-body);cursor:pointer}
.check input{width:17px;height:17px;flex-shrink:0;margin-top:2px;accent-color:var(--color-action);cursor:pointer}
.req{color:var(--color-danger-border)}

.btn-send{
  width:100%;height:52px;border-radius:var(--radius-pill);border:none;
  background:var(--color-action);color:#fff;font-size:18px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  transition:background var(--dur-fast);margin-top:4px;
}
.btn-send:hover{background:var(--color-action-hover)}
.btn-spinner{display:none;width:19px;height:19px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.is-loading .btn-spinner{display:inline-block}
.is-loading{pointer-events:none;opacity:.9}
.form-error{font-size:14px;color:var(--color-danger);font-weight:500;text-align:center;margin-top:2px}
.form-error:empty{display:none}

.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.turnstile-slot:empty{display:none}

.form-success{
  background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-card);
  padding:clamp(34px,4vw,52px);text-align:center;box-shadow:var(--shadow-2);
}
.form-success h3{font-size:24px;margin:16px 0 6px;color:var(--color-primary-deep)}
.form-success p{color:var(--color-text-muted)}
.success-mark{margin-inline:auto}
.success-circle{stroke-dasharray:176;stroke-dashoffset:176;animation:draw .7s var(--ease) forwards}
.success-check{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .45s var(--ease) .55s forwards}
@keyframes draw{to{stroke-dashoffset:0}}

/* ── 9. Footer ─────────────────────────────────────────────── */
.site-footer{background:var(--color-primary);color:#fff}
.footer-top{padding:34px 0 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}
.footer-tag{font-size:15px;opacity:.9;margin-top:10px}
.footer-links{display:flex;gap:22px;flex-wrap:wrap;padding-top:4px}
.footer-links a{font-size:14.5px;font-weight:500;opacity:.85;transition:opacity var(--dur-fast)}
.footer-links a:hover{opacity:1}
.footer-bottom{border-top:1px solid rgba(255,255,255,.28)}
.footer-bottom-inner{padding:14px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px}
.footer-bottom-inner span{opacity:.85}

/* ── 10. Legal pages ───────────────────────────────────────── */
.legal-page{padding:var(--space-7) 0 var(--space-9);max-width:760px}
.legal-page h1{color:var(--color-text);font-size:clamp(28px,3.6vw,38px);margin-bottom:6px}
.legal-page .updated{color:var(--color-text-muted);font-size:14px;margin-bottom:var(--space-6)}
.legal-page h2{font-size:20px;margin:var(--space-6) 0 var(--space-2)}
.legal-page p,.legal-page li{font-size:15.5px;color:var(--color-text-body)}
.legal-page ul{padding-left:20px;margin-top:var(--space-2)}
.legal-page a{color:var(--color-focus);font-weight:500}

/* ── 11. Consent banner ────────────────────────────────────── */
.consent{
  position:fixed;z-index:60;left:16px;right:16px;bottom:16px;max-width:430px;margin-inline:auto;
  background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-card);
  box-shadow:var(--shadow-2);padding:18px 20px;font-size:14px;color:var(--color-text-body);
}
.consent a{color:var(--color-focus);font-weight:500}
.consent-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
.consent .btn-sm{height:38px;padding:0 18px;font-size:14px;border-radius:var(--radius-pill)}
.consent .btn-accept{background:var(--color-action);color:#fff;border:none}
.consent .btn-accept:hover{background:var(--color-action-hover)}
.consent .btn-decline{background:transparent;color:var(--color-text-body);border:1.5px solid var(--color-border-strong)}
.consent .btn-decline:hover{border-color:var(--color-text-muted)}

/* ── 12. Reveal ────────────────────────────────────────────── */
.reveal{opacity:0;transform:translateY(16px);transition:opacity var(--dur-med) var(--ease),transform var(--dur-med) var(--ease)}
.reveal.is-in{opacity:1;transform:none}

/* ── 13. Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
  .reveal{opacity:1;transform:none}
  .particle,.lines{display:none}
}

/* ── 14. Responsive ────────────────────────────────────────── */
@media (max-width:900px){
  .card-grid{grid-template-columns:1fr;max-width:440px;margin-inline:auto}
  .contact-grid{grid-template-columns:1fr}
  .invite-card{flex-direction:column;align-items:flex-start}
  .footer-top{flex-direction:column}
}
@media (max-width:640px){
  .header-nav .nav-link{display:none}
  .hero{padding:46px 0 54px}
  .hero-cta{flex-direction:column;width:100%}
  .hero-cta .btn{width:100%}
  .glow{filter:blur(56px)}
}
@media (min-width:1800px){
  .page-inner{max-width:1240px}
}

/* ── 15. Phone dial-code component ─────────────────────────── */
.phone-row{
  position:relative;display:flex;align-items:stretch;
  background:var(--color-bg);border:1px solid var(--color-border-strong);
  border-radius:var(--radius-input);
  transition:border-color var(--dur-fast),box-shadow var(--dur-fast);
}
.phone-row:focus-within{border-color:var(--color-focus);box-shadow:0 0 0 3px rgba(18,115,196,.15)}
.phone-row.invalid{border-color:var(--color-danger-border)}
.dial-btn{
  display:flex;align-items:center;gap:7px;
  background:transparent;border:none;border-right:1px solid var(--color-border);
  padding:0 12px 0 14px;border-radius:var(--radius-input) 0 0 var(--radius-input);
  color:var(--color-text);font-size:15px;font-weight:500;cursor:pointer;
}
.dial-btn:hover{background:var(--color-surface)}
.dial-flag{border-radius:2px;flex-shrink:0}
.phone-input{
  flex:1;min-width:0;border:none;background:transparent;
  padding:14px 16px;border-radius:0 var(--radius-input) var(--radius-input) 0;
}
.phone-input:focus{outline:none}
.phone-input::placeholder{color:#8896A8;opacity:1}

.dial-menu{
  position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:min(320px,100%);
  background:var(--color-bg);border:1px solid var(--color-border);
  border-radius:var(--radius-card);box-shadow:var(--shadow-2);
  padding:10px;
}
.dial-search{
  width:100%;border:1px solid var(--color-border-strong);border-radius:var(--radius-input);
  padding:9px 12px;font-size:14px;margin-bottom:8px;
}
.dial-search:focus{outline:none;border-color:var(--color-focus);box-shadow:0 0 0 3px rgba(18,115,196,.15)}
.dial-list{list-style:none;max-height:240px;overflow-y:auto;margin:0;padding:0}
.dial-item{
  display:flex;align-items:center;gap:10px;width:100%;
  background:transparent;border:none;border-radius:8px;
  padding:8px 10px;font-size:14.5px;color:var(--color-text-body);
  cursor:pointer;text-align:left;
}
.dial-item:hover{background:var(--color-surface-2)}
.dial-item img{border-radius:2px;flex-shrink:0}
.dial-item-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dial-item-code{color:var(--color-text-muted);font-weight:500}
