/* FiLog site. Warm paper theme with film-stock accents:
   Portra gold, Ektar red, Fuji green, CineStill blue, Velvia magenta. */
:root {
  --bg: #faf6ef; --bg-2: #f3ece0; --card: #ffffff; --line: rgba(70,50,20,0.10);
  --text: #1c1814; --muted: #5f564a; --soft: #8c8172; --ink: #1c1814;
  --gold: #d99a00; --red: #e2401f; --green: #0f9a68; --blue: #2f6ae6; --magenta: #c4318f;
  --shadow: 0 1px 2px rgba(60,40,10,0.04), 0 14px 34px -20px rgba(60,40,10,0.30);
  --display: "Bricolage Grotesque", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 17px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.gradient-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--red) 35%, var(--magenta) 65%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,239,0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: 0.5px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--ink); box-shadow: 0 10px 24px -12px rgba(28,24,20,0.7); }
.btn-warm { color: #1c1205; background: linear-gradient(100deg, #f5b700, #ff8a3c 55%, #ff5a3c); box-shadow: 0 12px 30px -12px rgba(255,90,60,0.7); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--line); }
.nav .btn { padding: 10px 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 10%; z-index: -1; filter: blur(80px); opacity: 0.32;
  background:
    radial-gradient(35% 45% at 15% 25%, #f5b700, transparent 70%),
    radial-gradient(30% 40% at 85% 20%, #e34fb4, transparent 70%),
    radial-gradient(35% 45% at 65% 75%, #4d8bff, transparent 70%),
    radial-gradient(25% 35% at 30% 80%, #ff5a3c, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font: 800 clamp(44px, 6.4vw, 76px)/1.0 var(--display); letter-spacing: -2px; margin: 0 0 20px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--soft); font-size: 14px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: var(--ink); color: #fff;
  text-decoration: none; line-height: 1.15; box-shadow: 0 10px 24px -12px rgba(28,24,20,0.7);
}
.badge-soon svg { width: 26px; height: 26px; fill: #fff; }
.badge-soon small { display: block; font-size: 11px; opacity: 0.75; letter-spacing: 0.3px; }
.badge-soon strong { font-size: 17px; }

/* Phone mockup: an illustration of the FiLog home screen. */
.phone {
  width: 300px; margin: 0 auto; border-radius: 48px; padding: 12px; background: #16120e; position: relative;
  box-shadow: 0 50px 90px -40px rgba(30,20,5,0.65), 0 0 0 2px #2c2620 inset; transform: rotate(3deg);
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #16120e; border-radius: 20px; z-index: 2; }
.screen { background: #fff; border-radius: 37px; overflow: hidden; padding: 54px 16px 18px; height: 600px; position: relative; color: #111; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.app-top b { font: 800 22px/1 "Inter", sans-serif; letter-spacing: 2px; }
.app-top i { width: 18px; height: 12px; border-top: 2px solid #111; border-bottom: 2px solid #111; position: relative; }
.app-top i::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: #111; }
.app-stat { font-size: 11px; color: #777; margin-bottom: 10px; }
.app-search { background: #f2f2f2; border-radius: 10px; height: 30px; margin-bottom: 10px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; color: #999; }
.app-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.app-chips span { font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid #e5e5e5; }
.app-chips span:first-child { background: #111; color: #fff; border-color: #111; }
.roll { border: 1px solid #ececec; border-radius: 16px; padding: 10px; margin-bottom: 10px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.roll .can { width: 38px; height: 50px; border-radius: 8px; }
.roll h4 { margin: 0; font-size: 13px; line-height: 1.25; }
.roll p { margin: 1px 0 6px; font-size: 10px; color: #888; line-height: 1.3; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strip span { height: 34px; border-radius: 4px; }
.app-new { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #111; color: #fff; text-align: center; font-weight: 700; font-size: 13px; border-radius: 99px; padding: 11px; }
.c1 { background: linear-gradient(135deg, #f5b700, #ff7a1a); } .c2 { background: linear-gradient(135deg, #ff5a3c, #c4318f); }
.c3 { background: linear-gradient(135deg, #22c58b, #2f6ae6); } .c4 { background: linear-gradient(135deg, #4d8bff, #7a4dff); }
.c5 { background: linear-gradient(135deg, #e34fb4, #ff5a3c); } .c6 { background: linear-gradient(135deg, #8a8f98, #3b3f46); }
.c7 { background: linear-gradient(135deg, #c9b38a, #6f5b3e); } .c8 { background: linear-gradient(135deg, #7fd1c7, #2a7f9e); }

/* ---------- Film strip divider ---------- */
.film-strip { margin: 40px 0; padding: 12px 0; background: #1c1814; transform: rotate(-1.2deg); box-shadow: 0 18px 40px -22px rgba(30,20,5,0.55); }
.film-strip::before, .film-strip::after {
  content: ""; display: block; height: 10px; margin: 0 0 10px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, #e9e1d2 10px 24px, transparent 24px 34px); opacity: 0.85;
}
.film-strip::after { margin: 10px 0 0; }
.frames { display: flex; gap: 10px; padding: 0 10px; overflow: hidden; }
.frames span { flex: 1 0 120px; height: 70px; border-radius: 6px; font: 600 11px/1 var(--mono); color: rgba(255,255,255,0.88); display: flex; align-items: flex-end; padding: 8px; letter-spacing: 1px; }
.frames span:nth-child(5n+1) { background: linear-gradient(135deg, #f5b700, #ff7a1a); }
.frames span:nth-child(5n+2) { background: linear-gradient(135deg, #ff5a3c, #c4318f); }
.frames span:nth-child(5n+3) { background: linear-gradient(135deg, #22c58b, #2f6ae6); }
.frames span:nth-child(5n+4) { background: linear-gradient(135deg, #4d8bff, #7a4dff); }
.frames span:nth-child(5n)   { background: linear-gradient(135deg, #e34fb4, #ff5a3c); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head h2, .section h2.title { font: 800 clamp(32px, 4.4vw, 48px)/1.08 var(--display); letter-spacing: -1px; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  --c: var(--gold); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform 0.2s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature::after { content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: 0.10; filter: blur(26px); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c); margin-bottom: 18px; box-shadow: 0 10px 20px -10px var(--c); }
.feature .icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font: 700 20px/1.25 var(--display); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; box-shadow: var(--shadow); }
.step .num { font: 600 13px/1 var(--mono); letter-spacing: 2px; color: var(--c, var(--gold)); }
.step h3 { font: 700 22px/1.2 var(--display); margin: 12px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.privacy-band {
  border-radius: 32px; padding: 52px; color: #f6f1e9; background: #1c1814; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.privacy-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.45; filter: blur(60px);
  background: radial-gradient(40% 60% at 90% 10%, #e34fb4, transparent 70%), radial-gradient(40% 60% at 10% 100%, #f5b700, transparent 70%);
}
.privacy-band > * { position: relative; }
.privacy-band h2 { font: 800 clamp(30px, 4vw, 42px)/1.1 var(--display); margin: 0 0 14px; letter-spacing: -0.8px; }
.privacy-band p { color: #cfc6b8; margin: 0 0 24px; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-band li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.privacy-band li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h2 { margin-top: 0; }
.contact-info p { color: var(--muted); }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-top: 14px; box-shadow: var(--shadow); text-decoration: none; }
.contact-card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c, var(--gold)); flex: none; }
.contact-card .icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card small { display: block; color: var(--soft); font-size: 13px; }
.contact-card strong { font-size: 16px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; transition: border-color 0.15s, box-shadow 0.15s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,106,230,0.15); }
.form .hint { color: var(--soft); font-size: 13px; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1c1814; color: #cfc6b8; padding: 60px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #f6f1e9; }
.site-footer p { margin: 14px 0 0; font-size: 15px; max-width: 320px; }
.site-footer h4 { color: #f6f1e9; font: 600 13px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; font-size: 15px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Document pages (privacy, support) ---------- */
.page-hero { text-align: center; padding: 64px 20px 8px; position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1; filter: blur(70px); opacity: 0.28;
  background: radial-gradient(40% 50% at 20% 30%, #f5b700, transparent 70%), radial-gradient(35% 45% at 80% 25%, #e34fb4, transparent 70%), radial-gradient(40% 50% at 55% 75%, #4d8bff, transparent 70%);
}
.page-hero h1 { font: 800 clamp(40px, 7vw, 62px)/1.04 var(--display); letter-spacing: -1.5px; margin: 0 0 14px; }
.page-hero .lede { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 14px -10px rgba(60,40,10,0.35); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.frame { --c: var(--gold); position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px 22px; margin: 0 0 18px; overflow: hidden; box-shadow: var(--shadow); }
.frame::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.frame-label { font: 600 12px/1 var(--mono); letter-spacing: 2px; color: var(--c); margin: 0 0 10px; }
.frame h2 { font: 700 24px/1.2 var(--display); letter-spacing: -0.4px; margin: 0 0 10px; }
.frame p { margin: 0 0 12px; color: var(--muted); }
.frame p:last-child { margin-bottom: 0; }
.frame strong { color: var(--text); }
details.frame { padding: 0; }
details.frame summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative; font: 700 19px/1.3 var(--display); }
details.frame summary::-webkit-details-marker { display: none; }
details.frame summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 18px/1 "Inter", sans-serif; transition: transform 0.2s; }
details.frame[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.frame .answer { padding: 0 26px 22px; }
details.frame .answer p { color: var(--muted); margin: 0 0 12px; }
details.frame .answer p:last-child { margin: 0; }
.doc-end { text-align: center; margin: 40px 0 80px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .privacy-band { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 48px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .privacy-band { padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form { padding: 24px 20px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .phone { width: 270px; }
  .screen { height: 540px; }
  .frames span { flex-basis: 96px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .feature { transition: none; } }

/* Always-visible language controls, including when the mobile menu is collapsed. */
.language-switcher {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); order: 2;
}
.language-switcher button {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); min-width: 40px; min-height: 38px;
  font: 600 12px/1 "Inter", sans-serif; padding: 8px;
}
.language-switcher button:hover { background: var(--bg-2); color: var(--text); }
.language-switcher button[aria-pressed="true"] { background: var(--ink); color: #fff; }
html[lang="ko"] { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 901px) and (max-width: 1120px) {
  .nav { gap: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav .btn { padding: 10px 12px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: rgba(250,246,239,0.97); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 14px; border-bottom: 0; }
  .site-header.open .nav-links { display: flex; }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .language-switcher { margin-left: auto; order: 0; }
  .language-switcher button { min-width: 38px; min-height: 38px; }
  .menu-toggle { margin-left: 0; flex-shrink: 0; }
}
