:root {
  --background-color: #03000a;
  --text-color: #ffffff;
  --accent-color: #00b39b;
  --action-color: #e78300;
  --blue: #0b5fff;
  --sky: #7dc3ff;
  --card: rgba(9, 13, 38, 0.82);
  --card-border: rgba(125, 195, 255, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Poppins", sans-serif; background-color: var(--background-color); color: var(--text-color); }
canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: var(--accent-color); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
b { font-weight: 600; }

/* header */
.header { position: fixed; top: 0; left: 0; right: 0; background: rgba(3, 0, 10, 0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 15px 0; z-index: 100; display: flex; justify-content: center; }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1200px; }
nav ul { list-style: none; padding: 0; margin: 0; }
nav ul li { display: inline; margin-right: 15px; }
nav ul li a { text-decoration: none; color: #fff; font-weight: 500; font-size: 15px; transition: color .2s ease; }
nav ul li a:hover { color: var(--accent-color); }
nav ul li a u { text-decoration: none; background: linear-gradient(to right, var(--accent-color), var(--action-color));
  background-size: 100% 2px; background-position: bottom; background-repeat: no-repeat; padding-bottom: 2px; }
.header-contact a { text-decoration: none; color: #fff; margin-left: 15px; font-size: 14px; font-weight: 500; transition: color .2s ease; }
.header-contact a:hover { color: var(--accent-color); }
@media (max-width: 720px) { nav ul li:not(:first-child) { display: none; } .header-contact a:first-child { display: none; } }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; z-index: 1; }
.hero--short { min-height: 52vh; padding-top: 90px; }
.hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 179, 155, 0.1) 0%, transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite; }
.hero::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(231, 131, 0, 0.1) 0%, transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite 1s; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.1); opacity: .8; } }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; width: 90%; max-width: 800px; position: relative; z-index: 10; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; opacity: 0; animation: fadeInUp 1s ease-out .3s forwards; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
.hero h1 { margin: 0 0 24px; line-height: 1.1; color: var(--sky); text-shadow: 0 0 12px rgba(125, 195, 255, 0.6); font-weight: 700; font-size: 4rem; }
.hero--short h1 { font-size: 2.6rem; }
.hero .eyebrow { margin: 0 0 8px; color: rgba(255,255,255,.6); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, 0.8); line-height: 1.6; margin: 0 0 24px; }
.hero .subtitle { font-size: 24px; font-weight: 300; margin-bottom: 16px; color: rgba(255, 255, 255, 0.9); }
.hero .description { font-size: 16px; max-width: 620px; margin: 0 auto 40px; color: rgba(255, 255, 255, 0.7); }
.hero .button-group { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.hero .scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; color: rgba(255,255,255,.6); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }
@media (max-width: 1000px) { .hero h1 { font-size: 3rem; } }
@media (max-width: 768px) { .hero h1 { font-size: 2.5rem; } .hero { padding: 80px 20px 40px; } .hero .button-group { flex-direction: column; gap: 12px; width: 100%; } .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; } }

/* buttons */
.btn-primary { background: var(--blue); color: #fff; border: none; padding: 12px 32px; border-radius: 8px; font-weight: 600; font-size: 16px; font-family: inherit;
  cursor: pointer; transition: all .3s ease; text-decoration: none; display: inline-block; box-shadow: 0 0 18px rgba(11, 95, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11, 95, 255, 0.5); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-secondary { background: transparent; color: var(--sky); border: 2px solid var(--sky); padding: 10px 30px; border-radius: 8px; font-weight: 600; font-size: 16px;
  cursor: pointer; transition: all .3s ease; text-decoration: none; display: inline-block; box-shadow: 0 0 14px rgba(125, 195, 255, 0.25) inset; }
.btn-secondary:hover { background: rgba(125, 195, 255, 0.2); color: #dff0ff; transform: translateY(-2px); }

/* blocks (About/Skills sections on the portfolio) */
.block { padding: 80px 20px; position: relative; }
.block--tight { padding-top: 20px; }
.block:nth-of-type(odd) { background: radial-gradient(circle at top left, rgba(0, 179, 155, 0.18), transparent 55%), rgba(3, 0, 10, 0.85); }
.block:nth-of-type(even) { background: radial-gradient(circle at bottom right, rgba(11, 95, 255, 0.14), transparent 55%), rgba(3, 0, 10, 0.85); }
.block-inner { margin: 0 auto; max-width: 1100px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }
.block-inner.narrow { max-width: 820px; }
.block-header { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.block-header h2 { font-size: 3rem; margin: 0; color: var(--accent-color); }
.block-subtitle { margin: 0 auto; color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; max-width: 700px; }
.block-note { text-align: center; color: rgba(255,255,255,.75); margin: 0; }
@media (max-width: 768px) { .block { padding: 56px 16px; } .block-header h2 { font-size: 2.2rem; } }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 820px; margin: 0 auto; width: 100%; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px rgba(9, 13, 38, 0.25);
  backdrop-filter: blur(6px); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.card:hover { border-color: rgba(125, 195, 255, 0.22); }
.card--highlight { background: linear-gradient(135deg, rgba(0, 179, 155, 0.22), rgba(9, 13, 38, 0.85)); }
.card h3 { margin: 0 0 12px; color: var(--sky); font-size: 1.5rem; font-weight: 600; }
.card h3 code { font-size: 1.05rem; word-break: break-all; }
.card h3 span { font-size: .85rem; color: rgba(255,255,255,.55); font-weight: 400; margin-left: 8px; }
.card p { color: rgba(255, 255, 255, 0.82); line-height: 1.6; margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card .price { font-size: 2.4rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.card .price span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.6); margin-left: 6px; }

/* form */
.order-form > label, .order-form legend, .order-form .lbl { display: block; font-weight: 600; margin: 22px 0 8px; color: #fff; }
.order-form > label:first-of-type { margin-top: 0; }
.order-form > label em, .order-form .lbl em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.55); margin-left: 6px; font-size: .9em; }
.order-form input[type=text], .order-form input[type=email], .order-form textarea, .card textarea {
  width: 100%; background: rgba(3, 0, 10, 0.6); color: #fff; border: 1px solid rgba(125, 195, 255, 0.2); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.order-form input:focus, .card textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(125, 195, 255, 0.15); }
.order-form textarea, .card textarea { min-height: 110px; resize: vertical; }
.hint { color: rgba(255,255,255,.6); font-size: 14px; margin: 8px 0 0; line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: center; background: rgba(9, 13, 38, 0.8); border: 1px solid var(--card-border); color: rgba(255,255,255,.9);
  padding: 10px 18px; border-radius: 12px; cursor: pointer; font-weight: 500; font-size: 15px; transition: all .3s ease; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: rgba(125, 195, 255, 0.3); transform: translateY(-2px); }
.chip:has(input:checked) { background: linear-gradient(135deg, rgba(11, 95, 255, 0.45), rgba(0, 179, 155, 0.3)); border-color: rgba(125, 195, 255, 0.4); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--sky); }
.rec-block .lbl { margin-top: 22px; }
.recorder { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; margin-top: 12px; padding: 16px;
  border: 1px dashed rgba(125, 195, 255, 0.3); border-radius: 12px; }
.rec-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sky); background: transparent; cursor: pointer; position: relative; }
.rec-btn::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #e5484d; transition: all .2s ease; }
.rec-btn[data-on="1"]::after { border-radius: 4px; inset: 14px; }
.rec-copy { margin: 0; }
.rec-copy b { display: block; font-weight: 600; }
.rec-copy span { color: rgba(255,255,255,.6); font-size: 14px; }
.takes { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.takes li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.75); }
.takes .grow { flex: 1; }
.takes audio { height: 30px; }
.takes button { background: none; border: 1px solid var(--card-border); color: rgba(255,255,255,.7); border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.submit-row .hint { margin: 0; max-width: 440px; }
.form-error { color: #ff8a8a; border: 1px solid rgba(255, 90, 90, 0.4); background: rgba(120, 20, 20, 0.25); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.confirm h3 { color: var(--accent-color); }
.confirm .hint a { color: rgba(255,255,255,.6); word-break: break-all; }

/* faq */
.faq { display: grid; gap: 14px; }
.faq details { padding: 18px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--sky); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 22px; color: var(--accent-color); }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 12px 0 0 22px; }

/* status page */
.status-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.status-grid > div { display: grid; gap: 24px; }
@media (max-width: 800px) { .status-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid rgba(125, 195, 255, 0.18); }
.timeline li { position: relative; padding: 0 0 20px 22px; color: rgba(255,255,255,.45); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--background-color); border: 2px solid rgba(125, 195, 255, 0.25); }
.timeline li.done { color: rgba(255,255,255,.8); }
.timeline li.done::before { background: var(--accent-color); border-color: var(--accent-color); }
.timeline li.now { color: #fff; }
.timeline li.now::before { background: var(--blue); border-color: var(--sky); box-shadow: 0 0 12px rgba(11, 95, 255, 0.6); }
.timeline li b { display: block; font-weight: 600; }
.timeline li span { font-size: 14px; color: rgba(255,255,255,.55); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.facts dt { color: rgba(255,255,255,.55); font-size: 14px; }
.facts dd { margin: 0; }
.facts dd.pre { white-space: pre-wrap; color: rgba(255,255,255,.75); }
.msg h3 { font-size: 1.1rem; }
.report { overflow-x: auto; }
.report h1 { font-size: 1.6rem; color: var(--sky); margin: 0 0 16px; }
.report h2 { font-size: 1.2rem; color: var(--accent-color); margin: 26px 0 10px; }
.report table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0 18px; }
.report th, .report td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.report th { color: rgba(255,255,255,.6); font-weight: 500; }
.report li, .report p { color: rgba(255,255,255,.82); line-height: 1.6; }
.report strong { color: #fff; }
.report code { color: var(--sky); }

/* footer */
.footer { position: relative; background-color: var(--background-color); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 40px 20px; display: flex; justify-content: center; align-items: center; }
.footer-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 90%; max-width: 1100px; gap: 8px; text-align: center; }
.footer-inner p { margin: 0; color: rgba(255, 255, 255, 0.6); }
.footer-inner a { color: rgba(255, 255, 255, 0.5); font-size: .85rem; transition: color .2s ease; }
.footer-inner a:hover { color: var(--accent-color); }

@media (prefers-reduced-motion: reduce) { *, .hero-content { animation: none !important; transition: none !important; opacity: 1 !important; } }
