:root {
  --blue: #1d6eea;
  --blue-dark: #0f4fb6;
  --blue-soft: #eaf3ff;
  --ink: #172033;
  --muted: #6d7585;
  --gray: #f4f6f8;
  --line: #e6e9ee;
  --white: #ffffff;
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.navbar {
  height: 82px;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1.5px;
}
.logo span:not(.logo-dot) { color: var(--blue); }
.logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  margin: 0 2px 2px 0;
}
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: #606a7b;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta {
  padding: 12px 19px;
  background: var(--ink);
  color: white;
}
.nav-cta:hover, .btn:hover { transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 650px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0 90px;
}
.eyebrow, .section-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-soft);
  border-radius: 100px;
  padding: 8px 13px;
  margin-bottom: 20px;
}
.hero h1, h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: -2px;
  line-height: 1.05;
}
.hero h1 { font-size: clamp(52px, 6vw, 78px); }
.hero h1 em, h2 em { color: var(--blue); font-style: normal; }
.hero-text {
  max-width: 500px;
  color: var(--muted);
  margin: 24px 0 28px;
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 15px 22px; }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 12px 25px rgba(29,110,234,.2); }
.btn-ghost { background: #f5f6f8; color: var(--ink); }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 38px; }
.mini-avatars { display: flex; }
.mini-avatars span {
  width: 35px; height: 35px; display: grid; place-items: center;
  border: 2px solid white; border-radius: 50%; background: var(--blue-soft);
  margin-left: -6px; font-size: 15px;
}
.mini-avatars span:first-child { margin-left: 0; }
.hero-note strong, .hero-note small { display: block; }
.hero-note strong { font-size: 12px; }
.hero-note small { color: var(--muted); font-size: 11px; }

.hero-visual { min-height: 510px; position: relative; display: grid; place-items: center; }
.blob {
  position: absolute;
  width: min(480px, 80vw);
  aspect-ratio: 1;
  background: var(--blue-soft);
  border-radius: 48% 52% 63% 37% / 40% 45% 55% 60%;
  transform: rotate(14deg);
}
.icecream-card {
  position: relative; z-index: 2; width: 350px; height: 430px;
  border-radius: 180px 180px 35px 35px;
  background: linear-gradient(150deg, #fff, #eef4fb);
  box-shadow: 0 35px 80px rgba(27,49,83,.15);
  display: grid; place-items: center;
}
.icecream-art { position: relative; width: 210px; height: 340px; }
.scoop {
  position: absolute; width: 125px; height: 125px; border-radius: 50%;
  box-shadow: inset -12px -15px 25px rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.08);
}
.scoop-blue { background: #77b3ff; left: 12px; top: 35px; }
.scoop-cream { background: #fff9ec; left: 70px; top: 75px; }
.scoop-gray { background: #cdd5df; left: 37px; top: 135px; }
.cone {
  position: absolute; width: 105px; height: 155px; left: 55px; top: 210px;
  background: linear-gradient(90deg, #dca873, #f2c78f, #dca873);
  clip-path: polygon(8% 0, 92% 0, 62% 100%, 38% 100%);
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.1));
}
.cone::after {
  content: ""; position: absolute; inset: 15px 20px;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(130,80,35,.18) 13px 15px);
}
.floating-card {
  position: absolute; z-index: 3; background: white; border: 1px solid rgba(20,40,70,.07);
  box-shadow: 0 15px 35px rgba(24,42,72,.12); border-radius: 16px; padding: 12px 15px;
  display: flex; align-items: center; gap: 10px;
}
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: 12px; }
.floating-card small { color: var(--muted); font-size: 9px; }
.floating-card-top { top: 100px; right: 0; }
.floating-card-bottom { bottom: 70px; left: 10px; }
.rating { width: 31px; height: 31px; border-radius: 10px; display:grid; place-items:center; background:#fff4d7; color:#e2a91d; }
.tiny-icon { width: 31px; height: 31px; border-radius: 10px; display:grid; place-items:center; background:var(--blue-soft); color:var(--blue); }
.spark { position: absolute; color: var(--blue); z-index: 3; }
.spark-1 { top: 50px; left: 40px; font-size: 27px; }
.spark-2 { bottom: 90px; right: 30px; font-size: 18px; }

.marquee { overflow: hidden; background: var(--ink); color: white; padding: 15px 0; white-space: nowrap; }
.marquee div { width: max-content; font-size: 11px; font-weight: 800; letter-spacing: 3px; animation: move 20s linear infinite; }
.marquee span { color: #75adff; margin: 0 20px; }
@keyframes move { to { transform: translateX(-30%); } }

.section { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 105px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
h2 { font-size: clamp(42px, 5vw, 60px); margin-top: 10px; }
.section-heading p { max-width: 320px; color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(22,39,70,.1); }
.product-image { height: 260px; position: relative; display: grid; place-items: center; overflow: hidden; }
.product-image::before { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(255,255,255,.55); }
.vanilla { background:#f5f1e9; }
.blueberry { background:#e8f2ff; }
.cookies { background:#edf0f3; }
.badge { position:absolute; top:15px; left:15px; z-index:2; background:var(--ink); color:white; border-radius:100px; padding:6px 10px; font-size:9px; font-weight:800; letter-spacing:1px; }
.cup-art { position:relative; z-index:1; width:120px; height:170px; }
.cup-art i { position:absolute; display:block; width:95px; height:65px; border-radius:50%; box-shadow: inset -8px -8px 15px rgba(0,0,0,.08); }
.cup-art i:nth-child(1) { background:#fff6e7; top:5px; left:12px; }
.cup-art i:nth-child(2) { background:#78b2fb; top:42px; left:8px; }
.cup-art i:nth-child(3) { background:#d5dbe2; top:79px; left:14px; }
.cup-art::after { content:""; position:absolute; top:88px; left:22px; width:78px; height:72px; background:white; border-radius:12px 12px 30px 30px; box-shadow:0 7px 15px rgba(0,0,0,.08); }
.product-info { padding:20px; }
.product-info > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.product-info h3 { font-size:17px; }
.price { color:var(--blue); font-size:14px; font-weight:800; }
.product-info p { color:var(--muted); font-size:12px; margin:6px 0 15px; }
.order-btn { border:0; background:var(--blue-soft); color:var(--blue); padding:9px 13px; border-radius:100px; cursor:pointer; font-size:11px; font-weight:800; }
.order-btn:hover { background:var(--blue); color:white; }

.about-section { display:grid; grid-template-columns: .9fr 1.1fr; gap:100px; align-items:center; }
.about-image { height:480px; position:relative; display:grid; place-items:center; }
.about-circle { position:absolute; width:390px; height:390px; border-radius:50%; background:var(--gray); }
.about-scoop { width:260px; height:390px; position:relative; z-index:1; transform:rotate(-8deg); }
.about-scoop .scoop { width:145px; height:145px; }
.about-scoop .scoop-blue { left:45px; top:35px; }
.about-scoop .scoop-cream { left:100px; top:90px; }
.about-scoop .small-cone { left:82px; top:220px; width:115px; height:170px; }
.about-copy > p { color:var(--muted); max-width:530px; margin:25px 0 30px; }
.features { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.features div { border-top:1px solid var(--line); padding-top:14px; }
.features span { color:var(--blue); font-size:10px; font-weight:800; }
.features strong, .features small { display:block; }
.features strong { margin-top:8px; font-size:13px; }
.features small { color:var(--muted); font-size:10px; margin-top:3px; }

.cta-section {
  width: min(1180px, calc(100% - 48px)); margin: 0 auto 90px; padding: 65px 70px;
  border-radius: 32px; background:var(--blue); color:white; display:flex;
  justify-content:space-between; align-items:center; gap:50px; overflow:hidden; position:relative;
}
.cta-section::after { content:""; position:absolute; width:300px; height:300px; border-radius:50%; border:50px solid rgba(255,255,255,.08); right:-80px; top:-110px; }
.cta-section .section-label { color:#cfe2ff; }
.cta-section h2 { margin-top:10px; position:relative; z-index:1; }
.cta-section h2 em { color:white; }
.cta-right { max-width:330px; position:relative; z-index:1; }
.cta-right p { color:#dbeaff; font-size:13px; margin-bottom:20px; }
.btn-light { background:white; color:var(--ink); }

footer { width:min(1180px, calc(100% - 48px)); margin:auto; padding:30px 0 45px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; }
footer p { color:var(--muted); font-size:11px; }
.socials { display:flex; gap:8px; }
.socials a { width:30px; height:30px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; font-size:9px; font-weight:800; }
.toast {
  position:fixed; left:50%; bottom:25px; transform:translate(-50%, 120px);
  background:var(--ink); color:white; padding:13px 18px; border-radius:100px;
  font-size:12px; box-shadow:0 15px 30px rgba(0,0,0,.18); transition:transform .3s; z-index:10;
}
.toast.show { transform:translate(-50%, 0); }

@media (max-width: 850px) {
  .navbar { height:72px; }
  .menu-toggle { display:flex; flex-direction:column; gap:4px; cursor:pointer; }
  .menu-toggle span { width:23px; height:2px; background:var(--ink); }
  .nav-links, .nav-cta { display:none; }
  .nav-links.open {
    display:flex; position:absolute; left:24px; right:24px; top:70px; z-index:9;
    background:white; border:1px solid var(--line); border-radius:18px; padding:18px;
    flex-direction:column; gap:15px; box-shadow:0 20px 40px rgba(0,0,0,.08);
  }
  .hero { grid-template-columns:1fr; padding-top:40px; }
  .hero-visual { min-height:450px; }
  .product-grid { grid-template-columns:1fr; }
  .product-image { height:230px; }
  .about-section { grid-template-columns:1fr; gap:45px; }
  .about-image { height:390px; }
  .section-heading { align-items:start; flex-direction:column; }
  .cta-section { flex-direction:column; align-items:flex-start; padding:45px 30px; }
}
@media (max-width: 520px) {
  .navbar, .hero, .section, footer, .cta-section { width:calc(100% - 32px); }
  .hero h1 { font-size:49px; }
  .icecream-card { width:280px; height:370px; }
  .floating-card-top { right:-4px; }
  .floating-card-bottom { left:-4px; bottom:40px; }
  .features { grid-template-columns:1fr; }
  .features div { display:grid; grid-template-columns:35px 1fr; column-gap:5px; }
  .features span { grid-row:span 2; }
  footer { flex-direction:column; align-items:flex-start; }
}

/* Checkout, admin login, dan dashboard */
.admin-nav-btn{border:1px solid var(--line);background:#eef5ff;color:var(--blue);padding:9px 15px;border-radius:999px;font:700 12px "DM Sans",sans-serif;cursor:pointer}
.modal-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(14,24,42,.58);backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;padding:18px;overflow:auto}
.modal-backdrop.open{display:flex}
.modal-card{position:relative;width:min(100%,560px);max-height:92vh;overflow:auto;background:white;border-radius:26px;padding:32px;box-shadow:0 30px 90px #07142b44}
.modal-card h2,.admin-panel h2{font-size:clamp(32px,4vw,44px);margin:8px 0 20px;letter-spacing:-1.4px}
.modal-narrow{width:min(100%,430px)}
.modal-close{position:absolute;right:16px;top:14px;border:0;border-radius:50%;width:36px;height:36px;background:#f1f4f8;color:var(--ink);font-size:25px;cursor:pointer;line-height:1}
.stack-form{display:grid;gap:15px}.stack-form label{display:grid;gap:7px;font-size:12px;font-weight:700;color:var(--ink)}
.stack-form input,.stack-form textarea,.admin-filters input,.admin-filters select,.product-crud-form input:not([type=checkbox]){width:100%;border:1px solid #dce3ed;border-radius:12px;padding:12px 13px;font:500 14px "DM Sans",sans-serif;background:#fff;color:var(--ink);outline:none}
.stack-form input:focus,.stack-form textarea:focus,.admin-filters input:focus,.product-crud-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1d6eea18}
.form-hint{font-size:11px;color:var(--muted);line-height:1.6}.checkout-summary{background:#f4f7fb;padding:14px;border-radius:14px;margin-bottom:18px;font-size:13px;white-space:pre-line}
.admin-backdrop{align-items:flex-start}.admin-panel{position:relative;width:min(1250px,100%);background:#f7f9fc;border-radius:24px;padding:28px;max-height:94vh;overflow:auto;box-shadow:0 30px 90px #07142b55}.admin-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-head-actions .btn{padding:10px 14px;font-size:12px}.inline-close{position:static;flex-shrink:0}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:8px 0 28px}.admin-stats>div{background:white;border:1px solid #e6ebf2;border-radius:16px;padding:17px}.admin-stats small,.admin-stats strong{display:block}.admin-stats small{color:var(--muted);font-size:11px}.admin-stats strong{font-size:26px;margin-top:7px}.admin-toolbar{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:14px}.admin-toolbar h3,.admin-crud h3{font-size:19px}.admin-toolbar p,.admin-crud p{font-size:12px;color:var(--muted);margin-top:4px}.admin-filters{display:flex;gap:8px;width:min(100%,520px)}.admin-filters select{max-width:170px}.table-wrap{overflow:auto;border:1px solid #e6ebf2;border-radius:16px;background:white}.orders-table{width:100%;border-collapse:collapse;min-width:850px;font-size:12px}.orders-table th,.orders-table td{text-align:left;padding:13px 14px;border-bottom:1px solid #edf0f5;vertical-align:top}.orders-table th{background:#f8faff;color:#687386;font-size:10px;text-transform:uppercase;letter-spacing:.6px}.orders-table td strong,.orders-table td small{display:block}.orders-table td small{color:var(--muted);margin-top:4px;line-height:1.5}.orders-table select{max-width:140px;padding:8px;border:1px solid #dce3ed;border-radius:9px;background:white}.mini-action{border:0;background:#eaf2ff;color:#1d60c3;padding:7px 9px;border-radius:8px;font-weight:700;cursor:pointer;margin:2px}.mini-action.danger{background:#fff0f0;color:#b42318}.status-pill{display:inline-block;padding:5px 8px;border-radius:999px;background:#edf2f8;font-size:10px;font-weight:800;white-space:nowrap}.admin-crud{background:white;border:1px solid #e6ebf2;border-radius:16px;padding:20px;margin-top:24px}.product-crud-form{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:9px;margin:16px 0}.product-crud-form .btn{padding:10px;font-size:11px}.check-label{display:flex;align-items:center;gap:7px;font-size:12px}.products-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-product-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #edf0f5;border-radius:12px;padding:10px;font-size:12px}.admin-product-row small{display:block;color:var(--muted);margin-top:3px}.admin-product-actions{display:flex;gap:5px;flex-shrink:0}
@media(max-width:850px){.admin-nav-btn{display:block}.nav-links.open .admin-nav-btn{align-self:flex-start}.admin-panel{padding:18px}.admin-panel-head,.admin-toolbar{align-items:flex-start;flex-direction:column}.admin-head-actions{width:100%}.admin-stats{grid-template-columns:repeat(2,1fr)}.product-crud-form{grid-template-columns:repeat(2,minmax(0,1fr))}.products-admin-list{grid-template-columns:1fr}.admin-filters{width:100%}}
@media(max-width:520px){.modal-card{padding:25px 19px}.admin-stats>div{padding:12px}.admin-stats strong{font-size:22px}.admin-filters{flex-direction:column}.admin-filters select{max-width:none}.product-crud-form{grid-template-columns:1fr}.admin-head-actions .btn{flex:1}.admin-panel h2{font-size:34px}}
