/* DAIO Landing Page — Digital Asset Inheritance Orchestration
   Author: Deniz Kiran / Back2IQ
   License: CC BY-NC-SA 4.0 */

/* ============ RESET & BASE ============ */
:root {
  --c1: #0a0f1a;
  --c2: #141a2a;
  --c3: #1e2638;
  --c4: #6b7280;
  --c5: #9ca3af;
  --c6: #e5e7eb;
  --c7: #ffffff;
  --c8: #dc2626;
  --c9: #991b1b;
  --a: #c9a54e;
  --m: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--c1);
  color: var(--c6);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; color: var(--c7); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.1rem; }

a { color: var(--a); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ============ UTILITIES ============ */
.c { max-width: 1120px; margin: 0 auto; padding: 0 var(--m); }
.sec { padding: 6rem 0; }
.sec-alt { background: var(--c2); }

/* ============ BUTTONS ============ */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Karla', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.75rem; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.b-p { background: var(--a); color: var(--c1); border-color: var(--a); }
.b-p:hover { background: #d4af5a; opacity: 1; }
.b-s { background: transparent; color: var(--c6); border-color: var(--c3); }
.b-s:hover { border-color: var(--c5); opacity: 1; }

/* ============ NAV ============ */
.n {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c3);
}
.n-i { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--m); }
.n-b { display: flex; align-items: center; gap: 0.75rem; }
.n-l { font-family: 'DM Serif Display', serif; font-size: 1.35rem; color: var(--c7); letter-spacing: 0.05em; }
.n-t { font-family: 'Karla', sans-serif; font-size: 0.7rem; color: var(--c5); letter-spacing: 0.08em; text-transform: uppercase; }
.n-x { display: flex; align-items: center; gap: 1.75rem; }
.n-x a { font-family: 'Karla', sans-serif; font-size: 0.85rem; color: var(--c5); }
.n-x a:hover { color: var(--c7); }
.n-m { display: none; background: none; border: none; color: var(--c6); font-size: 1.5rem; cursor: pointer; padding: 0.25rem; }

/* ============ HERO ============ */
.hr { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; }
.hr-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.hr-claim {
  font-family: 'Karla', sans-serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--a); margin-bottom: 2rem;
}
.hr-h { margin-bottom: 1.5rem; }
.hr-s { font-size: 1.15rem; color: var(--c5); max-width: 640px; margin: 0 auto 3rem; }
.hr-total {
  font-family: 'DM Serif Display', serif; font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--a); font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.hr-cat { font-family: 'Karla', sans-serif; font-size: 0.85rem; color: var(--c4); margin-bottom: 3rem; }
.hr-tick {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  font-family: 'Karla', sans-serif; font-size: 0.8rem; color: var(--c4);
  padding: 0.75rem 1.5rem; border: 1px solid var(--c3); border-radius: 100px;
}
.hr-tick-v { color: var(--c7); font-weight: 600; font-variant-numeric: tabular-nums; }
.hr-cta { margin-top: 3rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ CATEGORIES ============ */
.ct-h { text-align: center; margin-bottom: 0.75rem; }
.ct-sub { text-align: center; color: var(--c5); font-size: 0.95rem; margin-bottom: 3rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.ct-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ct-card {
  background: var(--c2); border: 1px solid var(--c3); border-radius: 8px;
  padding: 1.5rem; transition: border-color 0.2s, transform 0.2s;
}
.ct-card:hover { border-color: var(--a); transform: translateY(-2px); }
.ct-ic {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--a);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 0.9rem;
  color: var(--a); margin-bottom: 1rem; flex-shrink: 0;
}
.ct-name { font-size: 0.95rem; margin-bottom: 0.5rem; }
.ct-val { font-family: 'Karla', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--c7); margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.ct-ex { font-size: 0.8rem; color: var(--c4); line-height: 1.4; }
.ct-foot { text-align: center; margin-top: 2.5rem; font-family: 'Karla', sans-serif; font-size: 0.75rem; color: var(--c4); letter-spacing: 0.02em; }

/* ============ LOSS REASONS ============ */
.lr-h { text-align: center; margin-bottom: 0.75rem; }
.lr-sub { text-align: center; color: var(--c5); font-size: 0.95rem; margin-bottom: 3rem; }
.lr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.lr-bar { text-align: center; }
.lr-track { height: 120px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 1rem; }
.lr-fill { width: 48px; border-radius: 4px 4px 0 0; background: var(--c3); transition: height 0.8s ease; }
.lr-bar--hl .lr-fill { background: var(--a); }
.lr-pct { font-family: 'Karla', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--c7); }
.lr-name { font-family: 'Karla', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--c6); margin: 0.5rem 0 0.25rem; }
.lr-desc { font-size: 0.8rem; color: var(--c4); }
.lr-foot {
  text-align: center; font-size: 0.95rem; color: var(--c5);
  max-width: 640px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--c3);
}
.lr-foot strong { color: var(--a); }

/* ============ REGULATORY ============ */
.rg-h { text-align: center; margin-bottom: 0.75rem; }
.rg-sub { text-align: center; color: var(--c5); font-size: 0.95rem; margin-bottom: 3rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.rg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.rg-card { background: var(--c2); border-left: 3px solid var(--a); border-radius: 0 8px 8px 0; padding: 1.5rem; }
.rg-tag {
  display: block; font-family: 'Karla', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--a); margin-bottom: 0.75rem;
}
.rg-card p { font-size: 0.9rem; color: var(--c5); line-height: 1.5; }
.rg-foot { text-align: center; font-size: 0.95rem; color: var(--c6); max-width: 640px; margin: 0 auto; font-style: italic; }

/* ============ FRAMEWORK ============ */
.fw-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.fw-h { margin-bottom: 1.25rem; }
.fw-desc { font-size: 1rem; color: var(--c5); margin-bottom: 2.5rem; line-height: 1.8; }
.fw-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; }
.fw-pill {
  font-family: 'Karla', sans-serif; font-size: 0.8rem; font-weight: 500;
  padding: 0.5rem 1.25rem; border: 1px solid var(--c3); border-radius: 100px;
  color: var(--c6); transition: border-color 0.2s;
}
.fw-pill:hover { border-color: var(--a); }
.fw-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.fw-ext {
  padding-top: 2rem; border-top: 1px solid var(--c3);
  font-family: 'Karla', sans-serif; font-size: 0.75rem; color: var(--c4); line-height: 1.6;
}
.fw-ext strong { color: var(--c5); }
.fw-ext a { color: var(--a); font-weight: 600; }

/* ============ CONTACT ============ */
.co-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.co-h { margin-bottom: 0.75rem; }
.co-sub { color: var(--c5); font-size: 0.95rem; margin-bottom: 2.5rem; }
.co-fm { display: flex; flex-direction: column; gap: 0.75rem; }
.co-fm input {
  font-family: 'Karla', sans-serif; font-size: 0.9rem;
  background: var(--c2); border: 1px solid var(--c3); border-radius: 6px;
  padding: 0.85rem 1rem; color: var(--c7); outline: none; transition: border-color 0.2s;
}
.co-fm input::placeholder { color: var(--c4); }
.co-fm input:focus { border-color: var(--a); }
.co-fm .b { margin-top: 0.5rem; width: 100%; }
.co-ok { color: var(--a); font-family: 'Karla', sans-serif; font-size: 0.95rem; padding: 2rem 0; }
.co-err { color: var(--c8); font-family: 'Karla', sans-serif; font-size: 0.85rem; margin-top: 0.5rem; }

/* ============ FOOTER ============ */
.fo { border-top: 1px solid var(--c3); padding: 3rem 0; }
.fo-i { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.fo-brand { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--c7); }
.fo-by { font-family: 'Karla', sans-serif; font-size: 0.8rem; color: var(--c5); }
.fo-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.fo-links a { font-family: 'Karla', sans-serif; font-size: 0.8rem; color: var(--c4); }
.fo-links a:hover { color: var(--c7); }
.fo-legal { font-family: 'Karla', sans-serif; font-size: 0.7rem; color: var(--c4); }
.fo-legal a { color: var(--c4); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .ct-grid, .rg-grid { grid-template-columns: repeat(2, 1fr); }
  .lr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .n-x {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--c1);
    border-bottom: 1px solid var(--c3); padding: 1rem var(--m); gap: 1rem;
  }
  .n-x.open { display: flex; }
  .n-m { display: block; }
  .hr { min-height: auto; padding: 7rem 0 4rem; }
  .hr-total { font-size: 2.5rem; }
  .ct-grid { grid-template-columns: 1fr 1fr; }
  .lr-grid { grid-template-columns: 1fr 1fr; }
  .rg-grid { grid-template-columns: 1fr; }
  .sec { padding: 4rem 0; }
  .hr-cta, .fw-cta { flex-direction: column; align-items: center; }
  .chat-win { width: calc(100vw - 2rem) !important; right: 1rem !important; bottom: 4.5rem !important; max-height: 70vh !important; }
}

/* ============ CHAT WIDGET ============ */
.chat-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--a); color: var(--c1); font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(201,165,78,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(201,165,78,0.5); }
.chat-btn .badge {
  position: absolute; top: -2px; right: -2px; width: 14px; height: 14px;
  background: #22c55e; border-radius: 50%; border: 2px solid var(--c1);
}

.chat-win {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 9998;
  width: 380px; max-height: 500px; border-radius: 12px; overflow: hidden;
  background: var(--c2); border: 1px solid var(--c3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display: none; flex-direction: column;
  font-family: 'Karla', sans-serif;
}
.chat-win.open { display: flex; }

.chat-hd {
  padding: 0.75rem 1rem; background: var(--c1); border-bottom: 1px solid var(--c3);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-hd-t { font-size: 0.85rem; font-weight: 600; color: var(--a); }
.chat-hd-s { font-size: 0.65rem; color: var(--c5); }
.chat-close { background: none; border: none; color: var(--c5); cursor: pointer; font-size: 1.2rem; padding: 0; }
.chat-close:hover { color: var(--c7); }

.chat-msgs {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 200px; max-height: 350px;
}
.chat-msg {
  max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 10px;
  font-size: 0.82rem; line-height: 1.5; word-wrap: break-word;
}
.chat-msg.bot { background: var(--c3); color: var(--c6); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg.usr { background: var(--a); color: var(--c1); align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 500; }
.chat-msg.typing { color: var(--c5); font-style: italic; }

.chat-inp {
  display: flex; padding: 0.6rem; border-top: 1px solid var(--c3); gap: 0.5rem;
}
.chat-inp input {
  flex: 1; background: var(--c1); border: 1px solid var(--c3); border-radius: 8px;
  padding: 0.5rem 0.75rem; color: var(--c6); font-size: 0.82rem; font-family: inherit; outline: none;
}
.chat-inp input:focus { border-color: var(--a); }
.chat-inp input::placeholder { color: var(--c4); }
.chat-inp button {
  background: var(--a); border: none; border-radius: 8px; color: var(--c1);
  padding: 0.5rem 0.75rem; cursor: pointer; font-weight: 600; font-size: 0.82rem;
  transition: opacity 0.2s;
}
.chat-inp button:hover { opacity: 0.85; }
.chat-inp button:disabled { opacity: 0.4; cursor: not-allowed; }
