/* ============================================
   SUFTNET — Global Stylesheet
   White theme, refined typographic system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syne:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off-white: #f7f6f3;
  --cream: #f2f0eb;
  --stone: #e8e4dc;
  --border: #e0dbd1;
  --text: #1a1916;
  --text-2: #5c5a55;
  --text-3: #9b978f;
  --accent: #1a5cff;
  --accent-light: #e8efff;
  --accent-2: #0f3db5;
  --success: #1a8a5c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Syne', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --max: 1200px;
  --r: 8px;
  --r-lg: 16px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem; }
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.tag::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); color: var(--text); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); color: var(--text); }
h3 { font-size: 1.35rem; color: var(--text); font-weight: 400; }
h4 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
p { color: var(--text-2); line-height: 1.75; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); }
.btn-text {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 0.875rem;
}
.btn-text svg { transition: transform 0.2s; }
.btn-text:hover svg { transform: translateX(4px); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 1rem; }

/* ---- PAGE HEADER (inner pages) ---- */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.page-hero .tag { margin-bottom: 1.5rem; }
.page-hero h1 { margin-bottom: 1.5rem; max-width: 700px; }
.page-hero p { font-size: 1.15rem; max-width: 580px; color: var(--text-2); }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

/* ---- DIVIDERS ---- */
hr { border: none; border-top: 1px solid var(--border); }

/* ---- FOOTER ---- */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 260px; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-col h4 { color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.12em; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- SOCIAL ---- */
.social-icons { display: flex; gap: 0.75rem; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 600;
  transition: all 0.2s;
}
.social-icon:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ---- FADE IN ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .container { padding: 0 1.75rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section-pad { padding: 4rem 0; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .nav-cta { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ---- SUFTNET APPS ---- */
.apps-showcase { background: var(--off-white); border-top: 1px solid var(--border); }
.apps-heading { display:grid; grid-template-columns:1.15fr .85fr; gap:5rem; align-items:end; margin-bottom:3rem; }
.apps-heading h2 em { color:var(--accent); font-style:italic; }
.apps-heading > div:last-child { display:flex; flex-direction:column; align-items:flex-start; gap:1.25rem; }
.app-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.app-card { min-height:560px; border-radius:24px; padding:2rem; position:relative; overflow:hidden; border:1px solid rgba(0,0,0,.06); box-shadow:0 18px 50px rgba(27,30,41,.08); }
.app-card h3 { font-size:2.25rem; margin:.8rem 0 .7rem; }
.app-card > p { max-width:420px; color:rgba(20,22,30,.68); }
.app-card-top,.app-actions { display:flex; align-items:center; justify-content:space-between; gap:1rem; position:relative; z-index:2; }
.app-icon { width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#fff;color:#111;font-family:var(--sans);font-size:1.3rem;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.12); }
.app-kicker { font-family:var(--sans);font-size:.7rem;text-transform:uppercase;letter-spacing:.11em;font-weight:700;opacity:.65; }
.app-feature-list { display:flex;flex-wrap:wrap;gap:.45rem;margin:1.25rem 0 1.6rem;position:relative;z-index:2; }
.app-feature-list span { font-family:var(--sans);font-size:.69rem;font-weight:600;padding:.32rem .65rem;border-radius:99px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.75); }
.app-actions { justify-content:flex-start; }
.store-link { color:var(--text);font-family:var(--sans);font-size:.78rem;font-weight:600;text-decoration:none; }
.phone-preview { position:absolute;right:35px;bottom:-150px;width:205px;height:390px;border-radius:32px 32px 0 0;background:#fff;border:7px solid #151515;box-shadow:0 26px 55px rgba(0,0,0,.25);padding:48px 20px 20px;text-align:left;transform:rotate(4deg); }
.phone-notch { position:absolute;top:9px;left:50%;width:72px;height:18px;border-radius:30px;background:#151515;transform:translateX(-50%); }
.screen-label { font-family:var(--sans);font-size:.6rem;letter-spacing:.14em;font-weight:700;opacity:.55;margin-bottom:.55rem; }
.phone-preview strong { font-family:var(--serif);font-size:1.55rem;line-height:1.1;display:block; }
.screen-stack,.calendar-lines { display:grid;gap:8px;margin-top:28px; }
.screen-stack i,.calendar-lines i { height:42px;border-radius:8px;background:rgba(26,92,255,.12);display:block; }
.screen-stack i:nth-child(2){width:86%}.screen-stack i:nth-child(3){width:70%}
.calendar-lines i { height:30px;background:rgba(76,92,128,.12);border-left:4px solid #4c5c80; }
.budget-ring { margin:28px auto 0;width:110px;height:110px;border-radius:50%;display:grid;place-items:center;border:16px solid rgba(27,138,91,.18);border-top-color:#1b8a5b;font-family:var(--sans);font-weight:700;font-size:1.25rem; }
.cycle-orbit { width:120px;height:120px;border-radius:50%;border:13px solid rgba(192,78,125,.18);margin:28px auto;position:relative; }
.cycle-orbit span { position:absolute;width:18px;height:18px;border-radius:50%;background:#c04e7d;right:7px;top:-7px; }
.app-revvo{background:linear-gradient(145deg,#e8efff,#d9e2ff)} .app-claro{background:linear-gradient(145deg,#edf9f3,#d7f1e5)} .app-tronos{background:linear-gradient(145deg,#f0f2f8,#dfe4f0)} .app-vela{background:linear-gradient(145deg,#fff0f6,#f6dce8)}
.app-landing-hero { padding:calc(var(--nav-h) + 5rem) 0 5rem; overflow:hidden; }
.app-landing-grid { display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center; }
.app-landing-icon { width:84px;height:84px;border-radius:22px;display:grid;place-items:center;background:#fff;font-family:var(--sans);font-size:2rem;font-weight:700;box-shadow:0 16px 45px rgba(0,0,0,.12);margin-bottom:1.5rem; }
.app-landing-hero h1 { max-width:680px;margin-bottom:1.25rem; }
.app-landing-hero .lead { font-size:1.1rem;max-width:590px;margin-bottom:2rem; }
.store-badge { display:inline-flex;align-items:center;gap:.65rem;background:#111;color:#fff;text-decoration:none;border-radius:10px;padding:.65rem 1rem;font-family:var(--sans);font-size:.78rem;font-weight:600; }
.store-badge small { display:block;font-size:.55rem;font-weight:500;opacity:.72;line-height:1; }
.store-badge strong { display:block;font-size:.92rem;line-height:1.2; }
.app-device-stage { min-height:470px;position:relative;display:grid;place-items:center; }
.app-device-stage .phone-preview { position:relative;right:auto;bottom:auto;width:255px;height:500px;transform:rotate(5deg); }
.feature-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:3rem; }
.feature-card { padding:1.75rem;border:1px solid var(--border);border-radius:16px;background:#fff; }
.feature-card .num { font-family:var(--sans);font-size:.7rem;color:var(--accent);font-weight:700;letter-spacing:.1em;margin-bottom:1rem; }
.apps-page-grid { display:grid;grid-template-columns:1fr 1fr;gap:1.5rem; }
.apps-page-grid .app-card { min-height:520px; }
@media(max-width:900px){.apps-heading,.app-landing-grid{grid-template-columns:1fr;gap:2rem}.app-grid,.apps-page-grid{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.app-card{min-height:620px}.phone-preview{right:20px}.feature-grid{grid-template-columns:1fr}.app-device-stage{min-height:420px}.app-device-stage .phone-preview{width:220px;height:430px}}
